Merge pull request #107439 from brianpursley/kubectl-1157-2

Fix kubectl bug where bash completions don't work if --context flag is specified with a value that contains a colon

Kubernetes-commit: ab4801c4f35a7bf461ad13779b907b997d475639
This commit is contained in:
Kubernetes Publisher 2022-01-18 12:02:10 -08:00
commit f165610126
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func runCompletionBash(out io.Writer, boilerPlate string, kubectl *cobra.Command
return err return err
} }
return kubectl.GenBashCompletion(out) return kubectl.GenBashCompletionV2(out, false) // TODO: Upgrade to Cobra 1.3.0 or later before including descriptions (See https://github.com/spf13/cobra/pull/1509)
} }
func runCompletionZsh(out io.Writer, boilerPlate string, kubectl *cobra.Command) error { func runCompletionZsh(out io.Writer, boilerPlate string, kubectl *cobra.Command) error {