allow default option values - kube top node|pod

This commit is contained in:
juanvallejo
2017-08-15 14:59:56 -04:00
parent 5e0a539cf1
commit 5b8b1eb2eb
5 changed files with 31 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ func TestTopPod(t *testing.T) {
tf.ClientConfig = defaultClientConfig()
buf := bytes.NewBuffer([]byte{})
cmd := NewCmdTopPod(f, buf)
cmd := NewCmdTopPod(f, nil, buf)
for name, value := range testCase.flags {
cmd.Flags().Set(name, value)
}