|
|
|
@ -98,7 +98,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string
|
|
|
|
|
// Setup shell completion for the namespace flag
|
|
|
|
|
err := cmd.RegisterFlagCompletionFunc("namespace", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
|
|
|
|
if client, err := actionConfig.KubernetesClientSet(); err == nil {
|
|
|
|
|
// Choose a long enough timeout that the user notices somethings is not working
|
|
|
|
|
// Choose a long enough timeout that the user notices something is not working
|
|
|
|
|
// but short enough that the user is not made to wait very long
|
|
|
|
|
to := int64(3)
|
|
|
|
|
cobra.CompDebugln(fmt.Sprintf("About to call kube client for namespaces with timeout of: %d", to), settings.Debug)
|
|
|
|
|