Skip to content

Commit

Permalink
Remove chart folder before fetching
Browse files Browse the repository at this point in the history
This appeared to cause an issue after updating to the latest
version of helm3, we now remove the chart folder from temp
before doing a fetch.

Fixes: #55

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Mar 15, 2020
1 parent 49eb497 commit f2af156
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/apps/kubernetes_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func fetchChart(path, chart, version string, helm3 bool) error {
subdir = "helm3"
}

// First remove any existing folder
os.RemoveAll(path)

mkErr := os.MkdirAll(path, 0700)

if mkErr != nil {
Expand Down

0 comments on commit f2af156

Please sign in to comment.