Skip to content

Commit

Permalink
Fix out of cluster configuration for Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schneppenheim committed Mar 27, 2019
1 parent 5253e54 commit c4bf49f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit c4bf49f

Please sign in to comment.