diff --git a/cmd/helm/install.go b/cmd/helm/install.go index cf44ca7ef..fbb0f47e0 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -200,7 +200,6 @@ func newInstallCmd(c helm.Interface, out io.Writer) *cobra.Command { f := cmd.Flags() settings.AddFlagsTLS(f) - f.StringVar(&inst.appVersion, "app-version", "", "Specify an app version for the release") f.VarP(&inst.valueFiles, "values", "f", "Specify values in a YAML file or a URL(can specify multiple)") f.StringVarP(&inst.name, "name", "n", "", "The release name. If unspecified, it will autogenerate one for you") f.StringVar(&inst.namespace, "namespace", "", "Namespace to install the release into. Defaults to the current kube config namespace.") @@ -215,6 +214,7 @@ func newInstallCmd(c helm.Interface, out io.Writer) *cobra.Command { f.BoolVar(&inst.verify, "verify", false, "Verify the package before installing it") f.StringVar(&inst.keyring, "keyring", defaultKeyring(), "Location of public keys used for verification") f.StringVar(&inst.version, "version", "", "Specify the exact chart version to install. If this is not specified, the latest version is installed") + f.StringVar(&inst.appVersion, "app-version", "", "Specify an app version for the release") f.Int64Var(&inst.timeout, "timeout", 300, "Time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)") f.BoolVar(&inst.wait, "wait", false, "If set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout") f.BoolVar(&inst.atomic, "atomic", false, "If set, installation process purges chart on fail, also sets --wait flag") diff --git a/cmd/helm/upgrade.go b/cmd/helm/upgrade.go index 06603f948..99d68b3b5 100644 --- a/cmd/helm/upgrade.go +++ b/cmd/helm/upgrade.go @@ -152,7 +152,6 @@ func newUpgradeCmd(client helm.Interface, out io.Writer) *cobra.Command { f := cmd.Flags() settings.AddFlagsTLS(f) - f.StringVar(&upgrade.appVersion, "app-version", "", "Specify the app version to use for the upgrade") f.VarP(&upgrade.valueFiles, "values", "f", "Specify values in a YAML file or a URL(can specify multiple)") f.BoolVar(&upgrade.dryRun, "dry-run", false, "Simulate an upgrade") f.BoolVar(&upgrade.recreate, "recreate-pods", false, "Performs pods restart for the resource if applicable") @@ -167,6 +166,7 @@ func newUpgradeCmd(client helm.Interface, out io.Writer) *cobra.Command { f.BoolVarP(&upgrade.install, "install", "i", false, "If a release by this name doesn't already exist, run an install") f.StringVar(&upgrade.namespace, "namespace", "", "Namespace to install the release into (only used if --install is set). Defaults to the current kube config namespace") f.StringVar(&upgrade.version, "version", "", "Specify the exact chart version to use. If this is not specified, the latest version is used") + f.StringVar(&upgrade.appVersion, "app-version", "", "Specify the app version to use for the upgrade") f.Int64Var(&upgrade.timeout, "timeout", 300, "Time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)") f.BoolVar(&upgrade.resetValues, "reset-values", false, "When upgrading, reset the values to the ones built into the chart") f.BoolVar(&upgrade.reuseValues, "reuse-values", false, "When upgrading, reuse the last release's values and merge in any overrides from the command line via --set and -f. If '--reset-values' is specified, this is ignored.") diff --git a/docs/helm/helm_install.md b/docs/helm/helm_install.md index bf4e1fcae..48719d9a0 100644 --- a/docs/helm/helm_install.md +++ b/docs/helm/helm_install.md @@ -131,4 +131,4 @@ helm install [CHART] [flags] * [helm](helm.md) - The Helm package manager for Kubernetes. -###### Auto generated by spf13/cobra on 16-May-2019 +###### Auto generated by spf13/cobra on 19-Jun-2019