Skip to content

Commit

Permalink
Fix bash completion for kubectl symlinked to minikube by not adding `…
Browse files Browse the repository at this point in the history
…--cluster` flag for the `kubectl __complete` subcommand

Signed-off-by: Ben Krieger <ben.krieger@intel.com>
  • Loading branch information
ben-krieger committed Feb 14, 2023
1 parent 5ea80d0 commit 6be3ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ host. Please be aware that when using --ssh all paths will apply to the remote m
os.Exit(1)
}

if len(args) > 1 && args[0] != "--help" {
if len(args) > 1 && args[0] != "--help" && args[0] != cobra.ShellCompRequestCmd {
cluster := []string{"--cluster", cname}
args = append(cluster, args...)
}
Expand Down

0 comments on commit 6be3ba1

Please sign in to comment.