Upgrade Cobra from 1.2.1 to 1.3.0 to fix a bug where bash completions don't work when the kubectl command uses the --context flag to specify a context that contains a colon

This commit is contained in:
brianpursley 2022-01-12 10:37:13 -05:00
parent 73b68f5233
commit 64fac6cf49

View File

@ -167,7 +167,7 @@ func runCompletionBash(out io.Writer, boilerPlate string, kubectl *cobra.Command
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 {