mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
allow default option values - kube top node|pod
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user