func (g *getValuesCmd) run() error {
	res, err := g.client.ReleaseContent(g.release)
	if err != nil {
		return prettyError(err)
	}

	// If the user wants all values, compute the values and return.
	if g.allValues {
		cfg, err := chartutil.CoalesceValues(res.Release.Chart, res.Release.Config)
		if err != nil {
			return err
		}
		cfgStr, err := cfg.YAML()
		if err != nil {
			return err
		}
		fmt.Fprintln(g.out, cfgStr)
		return nil
	}

	fmt.Fprintln(g.out, res.Release.Config.Raw)
	return nil
}
// getValues implements 'helm get values'
getValues implements 'helm get values'
// getValues implements ' helm get values '
func (g *getValuesCmd) run() error {
	res, err := g.client.ReleaseContent(g.release)
	if err != nil {
		return prettyError(err)
	}
	if g.allValues {
		cfg, err := chartutil.CoalesceValues(res.Release.Chart, res.Release.Config)
		if err != nil {
			return err
		}
		cfgStr, err := cfg.YAML()
		if err != nil {
			return err
		}
		fmt.Fprintln(g.out, cfgStr)
		return nil
	}
	fmt.Fprintln(g.out, res.Release.Config.Raw)
	return nil
}
func ( g * getValuesCmd ) run ( ) error { res , err := g . client . ReleaseContent ( g . release ) if err != nil { return prettyError ( err ) } if g . allValues { cfg , err := chartutil . CoalesceValues ( res . Release . Chart , res . Release . Config ) if err != nil { return err } cfgStr , err := cfg . YAML ( ) if err != nil { return err } fmt . Fprintln ( g . out , cfgStr ) return nil } fmt . Fprintln ( g . out , res . Release . Config . Raw ) return nil }
getValues implements 'helm get values'
getValues implements ' helm get values '
// If the user wants all values, compute the values and return.