Skip to content

Commit

Permalink
Fix bug around KUBECONFIG env var (#42)
Browse files Browse the repository at this point in the history
Ref #41
  • Loading branch information
kailunshi authored Oct 16, 2020
1 parent a00e936 commit 2309cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helmfile/release_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func NewCommandWithKubeconfig(fs *ReleaseSet, args ...string) (*exec.Cmd, error)
if kubeconfig, err := getKubeconfig(fs); err != nil {
return nil, fmt.Errorf("creating command: %w", err)
} else if *kubeconfig != "" {
cmd.Env = append(cmd.Env, "KUBECONFIG=", *kubeconfig)
cmd.Env = append(cmd.Env, "KUBECONFIG="+*kubeconfig)
} else {
return nil, fmt.Errorf("[BUG] NewCommandWithKubeconfig must not be called with empty kubeconfig path. args = %s", strings.Join(args, " "))
}
Expand Down

0 comments on commit 2309cd8

Please sign in to comment.