From fcfbf6ba163a229d8b0e00953c29c83989b34244 Mon Sep 17 00:00:00 2001 From: Edaena Salinas Date: Tue, 25 Feb 2020 17:18:16 -0800 Subject: [PATCH] Temporary Helm values files not cleaned from tmp dir (#282) Co-authored-by: Evan Louie Co-authored-by: Tim Park --- generators/helm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generators/helm.go b/generators/helm.go index 8b2cd63..df95a69 100644 --- a/generators/helm.go +++ b/generators/helm.go @@ -166,6 +166,8 @@ func (hg *HelmGenerator) Generate(component *core.Component) (manifest string, e } overriddenValuesFileName := fmt.Sprintf("%s.yaml", randomString.String()) absOverriddenPath := path.Join(os.TempDir(), overriddenValuesFileName) + defer os.Remove(absOverriddenPath) + logger.Debug(emoji.Sprintf(":pencil: Writing config %s to %s\n", configYaml, absOverriddenPath)) if err = ioutil.WriteFile(absOverriddenPath, configYaml, 0777); err != nil { return "", err