Skip to content

Commit

Permalink
Added TmpHelfilePath field to ReleaseSet strucutre to store info abou…
Browse files Browse the repository at this point in the history
…t used temporarty helmfile path.

Handle tmpHelmfilPath removal in all places where `NewCommandWithKubeconfig` executed.
  • Loading branch information
dm3ch committed Jul 19, 2021
1 parent 628b4b4 commit 7182039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DEFAULT_GOAL := build
OS := $(shell go env GOOS)
ARCH := $(shell go env GOARCH)
PLUGIN_PATH ?= ${HOME}/.terraform.d/plugins/${OS}_${ARCH}
PLUGIN_PATH ?= ${HOME}/.terraform.d/plugins/registry.example.com/dm3ch/helmfile/1.0.3/${OS}_${ARCH}
PLUGIN_NAME := terraform-provider-helmfile
DIST_PATH := dist/${OS}_${ARCH}
GO_PACKAGES := $(shell go list ./... | grep -v /vendor/)
Expand Down
1 change: 1 addition & 0 deletions pkg/helmfile/release_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func NewCommandWithKubeconfig(fs *ReleaseSet, args ...string) (*exec.Cmd, error)
if err := ioutil.WriteFile(filepath.Join(fs.WorkingDirectory, path), bs, 0700); err != nil {
return nil, err
}
defer os.Remove(path)

flags := []string{
"--file", path,
Expand Down

0 comments on commit 7182039

Please sign in to comment.