Skip to content

Commit 85b0c6b

Browse files
authored
Merge pull request #84 from rphillips/fixes/fix_kubeconfig
config: fix using the KUBECONFIG to build the client
2 parents f5b79b9 + 1cdc54c commit 85b0c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func GetConfig() (*rest.Config, error) {
6262
}
6363
// If an env variable is specified with the config locaiton, use that
6464
if len(os.Getenv("KUBECONFIG")) > 0 {
65-
return clientcmd.BuildConfigFromFlags(masterURL, kubeconfig)
65+
return clientcmd.BuildConfigFromFlags(masterURL, os.Getenv("KUBECONFIG"))
6666
}
6767
// If no explicit location, try the in-cluster config
6868
if c, err := rest.InClusterConfig(); err == nil {

0 commit comments

Comments
 (0)