diff --git a/staging/src/k8s.io/sample-cli-plugin/pkg/cmd/ns.go b/staging/src/k8s.io/sample-cli-plugin/pkg/cmd/ns.go index 1f93a05c9a9..af6c97aa2d9 100644 --- a/staging/src/k8s.io/sample-cli-plugin/pkg/cmd/ns.go +++ b/staging/src/k8s.io/sample-cli-plugin/pkg/cmd/ns.go @@ -82,6 +82,9 @@ func NewCmdNamespace(streams genericiooptions.IOStreams) *cobra.Command { Short: "View or set the current namespace", Example: fmt.Sprintf(namespaceExample, "kubectl"), SilenceUsage: true, + Annotations: map[string]string{ + cobra.CommandDisplayNameAnnotation: "kubectl ns", + }, RunE: func(c *cobra.Command, args []string) error { if err := o.Complete(c, args); err != nil { return err