Helm package: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
{{Note|<center>Revised for Helm 3</center>}} | {{Note|<center>Revised for Helm 3</center>}} | ||
The command packages a chart into a versioned chart archive file. | |||
<syntaxhighlight lang='bash'> | |||
helm package | |||
</syntaxhighlight> | |||
The command packages a chart into a versioned chart archive file. The command needs the path to the directory containing the chart's [[[[Helm_Chart_Chart.yaml#version|Chart.yaml]]. Chart.yaml [[Helm_Chart_Chart.yaml#version|version]] element is used when generating the package name: when generating a package, the package command will use the version that it finds in the Chart.yaml as a token in the package name. | |||
The chart archive is saved in the directory the command is run from. | The chart archive is saved in the directory the command is run from. |
Revision as of 21:35, 15 December 2019
External
Internal
Overview
Revised for Helm 3
helm package
The command packages a chart into a versioned chart archive file. The command needs the path to the directory containing the chart's [[Chart.yaml. Chart.yaml version element is used when generating the package name: when generating a package, the package command will use the version that it finds in the Chart.yaml as a token in the package name.
The chart archive is saved in the directory the command is run from.
Packaging and Dependencies
If the chart being packaged declares dependencies, the dependency charts must be available in the charts/ directory, otherwise the packaging attempt will fail:
Error: found in Chart.yaml, but missing in charts/ directory: b
If that is the case, help dependency update must be run on the chart before attempting to package it.
Options
--debug
Use it to see what is packaged in the chart.