Merge pull request #128 from ibuildthecloud/master
Only ignore get-kubeconfig error when !all (thanks @ibuildthecloud)
This commit is contained in:
commit
fb74afceff
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user