We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5e6ce commit 2fb3ca6Copy full SHA for 2fb3ca6
cmd/root.go
@@ -66,7 +66,7 @@ func initConfig() {
66
}
67
68
if kubeconfig == "" {
69
- if kenv := viper.GetString("kubeconfig"); kenv != "" {
+ if kenv := os.Getenv("KUBECONFIG"); kenv != "" {
70
kubeconfig = kenv
71
} else if h := os.Getenv("HOME"); h != "" {
72
kubeconfig = fmt.Sprintf("%v/.kube/config", h)
0 commit comments