Merge pull request #20232 from mml/daemonset-warn

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-02-05 23:12:51 -08:00
6 changed files with 96 additions and 22 deletions

View File

@@ -323,8 +323,18 @@ func TestDrain(t *testing.T) {
pods: []api.Pod{ds_pod},
rcs: []api.ReplicationController{rc},
args: []string{"node"},
expectFatal: true,
expectDelete: false,
},
{
description: "DS-managed pod with --ignore-daemonsets",
node: node,
expected: cordoned_node,
pods: []api.Pod{ds_pod},
rcs: []api.ReplicationController{rc},
args: []string{"node", "--ignore-daemonsets"},
expectFatal: false,
expectDelete: true,
expectDelete: false,
},
{
description: "Job-managed pod",