fix(helm): improve create help

pull/613/head
Matt Butcher 9 years ago
parent a97bf8b7c0
commit 1dd6c01f5d

@ -17,11 +17,13 @@ For example, 'helm create foo' will create a directory structure that looks
something like this:
foo/
|- Chart.yaml
|- Chart.yaml # Information about your chart
|
|- values.toml
|- values.toml # The default values for your templates
|
|- templates/
|- charts/ # Charts that this chart depends on
|
|- templates/ # The template files
'helm create' takes a path for an argument. If directories in the given path
do not exist, Helm will attempt to create them as it goes. If the given

@ -38,6 +38,12 @@ const (
preCharts string = "charts/"
)
const defaultValues = `# Default values for %s.
# This is a TOML-formatted file. https://github.com/toml-lang/toml
# Declare name/value pairs to be passed into your templates.
# name = "value"
`
var headerBytes = []byte("+aHR0cHM6Ly95b3V0dS5iZS96OVV6MWljandyTQo=")
// Chart represents a complete chart.
@ -170,7 +176,7 @@ func Create(chartfile *Chartfile, dir string) (*Chart, error) {
return nil, err
}
val := []byte(fmt.Sprintf("# Default Values for %s\n", chartfile.Name))
val := []byte(fmt.Sprintf(defaultValues, chartfile.Name))
if err := ioutil.WriteFile(filepath.Join(cdir, preValues), val, 0644); err != nil {
return nil, err
}

Loading…
Cancel
Save