From c4bf49fbe19ab62d54d19e716af833c2cac462ef Mon Sep 17 00:00:00 2001 From: Martin Schneppenheim Date: Wed, 27 Mar 2019 13:05:56 +0100 Subject: [PATCH] Fix out of cluster configuration for Mac OS --- kubernetes/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kubernetes/client.go b/kubernetes/client.go index 3536ba4..db4b367 100644 --- a/kubernetes/client.go +++ b/kubernetes/client.go @@ -123,8 +123,9 @@ func getKubeConfigPath() (string, error) { // Mac OS if home != "" { - configPath := filepath.Join(home, ".kubeconfig") - if _, err := os.Stat(configPath); os.IsExist(err) { + configPath := filepath.Join(home, ".kube", "config") + _, err := os.Stat(configPath) + if err == nil { return configPath, nil } }