Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Temporary Helm values files not cleaned from tmp dir #282

Merged
merged 3 commits into from
Feb 26, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions generators/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down