Skip to content

Commit 990b02b

Browse files
authored
Merge pull request kubernetes#130033 from ardaguclu/completion-use-restclientgetter
Add completion in kubectl debug
2 parents 4467dd3 + 533a121 commit 990b02b

File tree

1 file changed

+3
-1
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd

1 file changed

+3
-1
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/cmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
389389
// Avoid import cycle by setting ValidArgsFunction here instead of in NewCmdGet()
390390
getCmd := get.NewCmdGet("kubectl", f, o.IOStreams)
391391
getCmd.ValidArgsFunction = utilcomp.ResourceTypeAndNameCompletionFunc(f)
392+
debugCmd := debug.NewCmdDebug(f, o.IOStreams)
393+
debugCmd.ValidArgsFunction = utilcomp.ResourceTypeAndNameCompletionFunc(f)
392394

393395
groups := templates.CommandGroups{
394396
{
@@ -440,7 +442,7 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
440442
proxyCmd,
441443
cp.NewCmdCp(f, o.IOStreams),
442444
auth.NewCmdAuth(f, o.IOStreams),
443-
debug.NewCmdDebug(f, o.IOStreams),
445+
debugCmd,
444446
events.NewCmdEvents(f, o.IOStreams),
445447
},
446448
},

0 commit comments

Comments
 (0)