diff --git a/cli/commands.go b/cli/commands.go index 8ea82f9c..0268190c 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -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 }