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

Commit

Permalink
Temporary Helm values files not cleaned from tmp dir (#282)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Louie <[email protected]>
Co-authored-by: Tim Park <[email protected]>
  • Loading branch information
3 people authored Feb 26, 2020
1 parent 6d26a3e commit fcfbf6b
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit fcfbf6b

Please sign in to comment.