Skip to content

Commit

Permalink
Honor os environment variables for helm commands (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
1337andre authored and jessesuen committed Mar 22, 2019
1 parent b0301b4 commit e8deeb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (h *helm) helmCmd(args ...string) (string, error) {

func (h *helm) helmCmdExt(args []string, logFormat func(string) string) (string, error) {
cmd := exec.Command("helm", args...)
cmd.Env = os.Environ()
cmd.Dir = h.path
if h.home != "" {
cmd.Env = append(cmd.Env, fmt.Sprintf("HELM_HOME=%s", h.home))
Expand Down

0 comments on commit e8deeb2

Please sign in to comment.