Skip to content

Commit 8903037

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 <[email protected]>
1 parent ba699ac commit 8903037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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] != "__complete" {
100100
cluster := []string{"--cluster", cname}
101101
args = append(cluster, args...)
102102
}

0 commit comments

Comments
 (0)