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` subcommand
pull/15864/head
Medya Ghazizadeh 2023-02-15 09:12:22 -08:00 committed by GitHub
commit 6815f9b06e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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...)
}