Merge pull request #3692 from aleerizw/fix-sigsegv-create

Fixed SIGSEGV when running helm create with -p and no values.yaml file
pull/3935/head
Matthew Fisher 7 years ago committed by GitHub
commit f201db3fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -307,8 +307,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