fix(helm): home env not set on Windows

When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows.
release-2.7
Pietro Menna 7 years ago committed by Adam Reese
parent c2a0572c42
commit 4f04c1cdb6
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

@ -28,11 +28,12 @@ import (
"github.com/spf13/pflag"
"k8s.io/client-go/util/homedir"
"k8s.io/helm/pkg/helm/helmpath"
)
// DefaultHelmHome is the default HELM_HOME.
var DefaultHelmHome = filepath.Join("$HOME", ".helm")
var DefaultHelmHome = filepath.Join(homedir.HomeDir(), ".helm")
// EnvSettings describes all of the environment settings.
type EnvSettings struct {

Loading…
Cancel
Save