Merge pull request #8211 from vvbogdanov87/fix-typo-export-kubecfg

Fix typo in export kubeconfig
This commit is contained in:
Kubernetes Prow Robot 2019-12-28 06:01:39 -08:00 committed by GitHub
commit 5d9f4e155b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func RunExportKubecfg(f *util.Factory, out io.Writer, options *ExportKubecfgOpti
var clusterList []*api.Cluster
if options.all {
if len(args) != 0 {
return fmt.Errorf("Cannot use both --args flag and positional arguments")
return fmt.Errorf("Cannot use both --all flag and positional arguments")
}
list, err := clientset.ListClusters(metav1.ListOptions{})
if err != nil {