diff --git a/cmd/helm/get.go b/cmd/helm/get.go index f1ad5334c..5bc4dc892 100644 --- a/cmd/helm/get.go +++ b/cmd/helm/get.go @@ -48,6 +48,7 @@ type getCmd struct { release string out io.Writer client helm.Interface + version int32 } func newGetCmd(client helm.Interface, out io.Writer) *cobra.Command { @@ -71,6 +72,9 @@ func newGetCmd(client helm.Interface, out io.Writer) *cobra.Command { return get.run() }, } + + cmd.PersistentFlags().Int32Var(&get.version, "version", 0, "version of release") + cmd.AddCommand(newGetValuesCmd(nil, out)) cmd.AddCommand(newGetManifestCmd(nil, out)) cmd.AddCommand(newGetHooksCmd(nil, out)) diff --git a/cmd/helm/status.go b/cmd/helm/status.go index 436445642..88eb14305 100644 --- a/cmd/helm/status.go +++ b/cmd/helm/status.go @@ -34,6 +34,7 @@ type statusCmd struct { release string out io.Writer client helm.Interface + version int32 } func newStatusCmd(client helm.Interface, out io.Writer) *cobra.Command { @@ -57,6 +58,9 @@ func newStatusCmd(client helm.Interface, out io.Writer) *cobra.Command { return status.run() }, } + + cmd.PersistentFlags().Int32Var(&status.version, "version", 0, "version of release") + return cmd }