Implement kubectl top command with subcommands.

This commit is contained in:
mksalawa
2016-08-11 17:24:22 +02:00
parent 2fb7cae2be
commit 5df9fe684d
22 changed files with 1387 additions and 0 deletions

View File

@@ -274,6 +274,8 @@ Find more information at https://github.com/kubernetes/kubernetes.`,
cmds.AddCommand(NewCmdConvert(f, out))
cmds.AddCommand(NewCmdCompletion(f, out))
cmds.AddCommand(NewCmdTop(f, out))
if cmds.Flag("namespace") != nil {
if cmds.Flag("namespace").Annotations == nil {
cmds.Flag("namespace").Annotations = map[string][]string{}