mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
refactor(node_taint_test): apply pod single creation convention for p13
This commit is contained in:
@@ -187,11 +187,12 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
||||
// A pod with local storage.
|
||||
// A Mirror Pod.
|
||||
|
||||
p13 := buildTestPod("p13", nodeName5, nil)
|
||||
test.SetNormalOwnerRef(p13)
|
||||
// node5 has PreferNoSchedule:testTaint1=test1, so the p13 has to have
|
||||
// PreferNoSchedule:testTaint0=test0 so the pod is not tolarated
|
||||
p13 = addTolerationToPod(p13, "testTaint", "test", 0, v1.TaintEffectPreferNoSchedule)
|
||||
p13 := buildTestPod("p13", nodeName5, func(pod *v1.Pod) {
|
||||
test.SetNormalOwnerRef(pod)
|
||||
addTolerationToPod(pod, "testTaint", "test", 0, v1.TaintEffectPreferNoSchedule)
|
||||
})
|
||||
|
||||
p14 := buildTestPod("p14", nodeName7, nil)
|
||||
test.SetNormalOwnerRef(p14)
|
||||
|
||||
Reference in New Issue
Block a user