Skip to content

Commit 6be3ba1

Browse files
committed
Fix bash completion for kubectl symlinked to minikube by not adding --cluster flag for the kubectl __complete subcommand
Signed-off-by: Ben Krieger <ben.krieger@intel.com>
1 parent 5ea80d0 commit 6be3ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/cmd/kubectl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ host. Please be aware that when using --ssh all paths will apply to the remote m
9696
os.Exit(1)
9797
}
9898

99-
if len(args) > 1 && args[0] != "--help" {
99+
if len(args) > 1 && args[0] != "--help" && args[0] != cobra.ShellCompRequestCmd {
100100
cluster := []string{"--cluster", cname}
101101
args = append(cluster, args...)
102102
}

0 commit comments

Comments
 (0)