Skip to content

Commit

Permalink
Merge pull request #128 from ibuildthecloud/master
Browse files Browse the repository at this point in the history
Only ignore get-kubeconfig error when !all (thanks @ibuildthecloud)
  • Loading branch information
Thorsten Klein authored Oct 19, 2019
2 parents 36bda94 + 645a516 commit fb74afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ func GetKubeConfig(c *cli.Context) error {
for _, cluster := range clusters {
kubeConfigPath, err := getKubeConfig(cluster.name)
if err != nil {
if !c.Bool("all") {
return err
}
log.Println(err)
continue
}
Expand Down

0 comments on commit fb74afc

Please # to comment.