From 99da9fb54817a00e0138a08ce0b0643b923e5b6e Mon Sep 17 00:00:00 2001 From: Ali Rizwan Date: Thu, 15 Mar 2018 16:07:29 +0100 Subject: [PATCH] Fixed SIGSEGV when running helm create with -p and no values.yaml file --- pkg/chartutil/create.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 319a75e2f..c6c1308ca 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -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, "", schart.Metadata.Name))} - + if schart.Values != nil { + schart.Values = &chart.Config{Raw: string(Transform(schart.Values.Raw, "", schart.Metadata.Name))} + } return SaveDir(schart, dest) }