We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5b79b9 + 1cdc54c commit 85b0c6bCopy full SHA for 85b0c6b
pkg/client/config/config.go
@@ -62,7 +62,7 @@ func GetConfig() (*rest.Config, error) {
62
}
63
// If an env variable is specified with the config locaiton, use that
64
if len(os.Getenv("KUBECONFIG")) > 0 {
65
- return clientcmd.BuildConfigFromFlags(masterURL, kubeconfig)
+ return clientcmd.BuildConfigFromFlags(masterURL, os.Getenv("KUBECONFIG"))
66
67
// If no explicit location, try the in-cluster config
68
if c, err := rest.InClusterConfig(); err == nil {
0 commit comments