Skip to content

Commit 533a121

Browse files
committed
Add completion in kubectl debug
1 parent ee22760 commit 533a121

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
@@ -383,6 +383,8 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
383383
// Avoid import cycle by setting ValidArgsFunction here instead of in NewCmdGet()
384384
getCmd := get.NewCmdGet("kubectl", f, o.IOStreams)
385385
getCmd.ValidArgsFunction = utilcomp.ResourceTypeAndNameCompletionFunc(f)
386+
debugCmd := debug.NewCmdDebug(f, o.IOStreams)
387+
debugCmd.ValidArgsFunction = utilcomp.ResourceTypeAndNameCompletionFunc(f)
386388

387389
groups := templates.CommandGroups{
388390
{
@@ -434,7 +436,7 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
434436
proxyCmd,
435437
cp.NewCmdCp(f, o.IOStreams),
436438
auth.NewCmdAuth(f, o.IOStreams),
437-
debug.NewCmdDebug(f, o.IOStreams),
439+
debugCmd,
438440
events.NewCmdEvents(f, o.IOStreams),
439441
},
440442
},

0 commit comments

Comments
 (0)