Skip to content

Commit 313cabe

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 0affca4 commit 313cabe

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
@@ -130,7 +130,7 @@ host. Please be aware that when using --ssh all paths will apply to the remote m
130130
os.Exit(1)
131131
}
132132

133-
if len(args) > 1 && args[0] != "--help" {
133+
if len(args) > 1 && args[0] != "--help" && args[0] != cobra.ShellCompRequestCmd {
134134
cluster := []string{"--cluster", cname}
135135
args = append(cluster, args...)
136136
}

0 commit comments

Comments
 (0)