Merge pull request #15850 from ben-krieger/fix-minikube-kubectl-bash-completion
Fix bash completion for kubectl symlinked to minikube by not adding `--cluster` flag for the `kubectl __complete` subcommandpull/15864/head
commit
6815f9b06e
|
@ -130,7 +130,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...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue