diff --git a/cmd/helm/create.go b/cmd/helm/create.go index c982f0a40..be8cd40a9 100644 --- a/cmd/helm/create.go +++ b/cmd/helm/create.go @@ -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 diff --git a/pkg/chart/chart.go b/pkg/chart/chart.go index 55a08fe61..964f8490b 100644 --- a/pkg/chart/chart.go +++ b/pkg/chart/chart.go @@ -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 }