Fixed SIGSEGV when running helm create with -p and no values.yaml file

pull/3692/head
Ali Rizwan 7 years ago
parent dede3ff1e1
commit 99da9fb548

@ -305,8 +305,9 @@ func CreateFrom(chartfile *chart.Metadata, dest string, src string) error {
}
schart.Templates = updatedTemplates
schart.Values = &chart.Config{Raw: string(Transform(schart.Values.Raw, "<CHARTNAME>", schart.Metadata.Name))}
if schart.Values != nil {
schart.Values = &chart.Config{Raw: string(Transform(schart.Values.Raw, "<CHARTNAME>", schart.Metadata.Name))}
}
return SaveDir(schart, dest)
}

Loading…
Cancel
Save