Do cleanup decrypted env secrets files (#1304)

* Do cleanup decrypted env secrets files

Resolves #503
This commit is contained in:
KUOKA Yusuke
2020-06-16 08:59:48 +09:00
committed by GitHub
parent f16d96bc8f
commit 3a2a460fe7
8 changed files with 122 additions and 82 deletions
+4 -1
View File
@@ -3,6 +3,7 @@ package state
import (
"github.com/roboll/helmfile/pkg/remote"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"testing"
@@ -19,7 +20,9 @@ func createFromYaml(content []byte, file string, env string, logger *zap.Sugared
logger: logger,
readFile: ioutil.ReadFile,
abs: filepath.Abs,
Strict: true,
DeleteFile: os.Remove,
Strict: true,
}
return c.ParseAndLoad(content, filepath.Dir(file), file, env, true, nil)
}