mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 14:41:10 +01:00
refactor(node_taint_test): apply pod single creation convention for p15
This commit is contained in:
@@ -199,10 +199,11 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
|||||||
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
|
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
|
||||||
})
|
})
|
||||||
|
|
||||||
p15 := buildTestPod("p15", nodeName7, nil)
|
p15 := buildTestPod("p15", nodeName7, func(pod *v1.Pod) {
|
||||||
test.SetNormalOwnerRef(p15)
|
test.SetNormalOwnerRef(pod)
|
||||||
p15 = addTolerationToPod(p15, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
|
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
|
||||||
p15 = addTolerationToPod(p15, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule)
|
addTolerationToPod(pod, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule)
|
||||||
|
})
|
||||||
|
|
||||||
var uint1, uint2 uint = 1, 2
|
var uint1, uint2 uint = 1, 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user