|
|
|
@ -35,6 +35,7 @@ type getValuesCmd struct {
|
|
|
|
|
allValues bool
|
|
|
|
|
out io.Writer
|
|
|
|
|
client helm.Interface
|
|
|
|
|
version int32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func newGetValuesCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
@ -55,13 +56,15 @@ func newGetValuesCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
|
return get.run()
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cmd.Flags().Int32Var(&get.version, "revision", 0, "get the named release with revision")
|
|
|
|
|
cmd.Flags().BoolVarP(&get.allValues, "all", "a", false, "dump all (computed) values")
|
|
|
|
|
return cmd
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// getValues implements 'helm get values'
|
|
|
|
|
func (g *getValuesCmd) run() error {
|
|
|
|
|
res, err := g.client.ReleaseContent(g.release)
|
|
|
|
|
res, err := g.client.ReleaseContent(g.release, helm.ContentReleaseVersion(g.version))
|
|
|
|
|
if err != nil {
|
|
|
|
|
return prettyError(err)
|
|
|
|
|
}
|
|
|
|
|