1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

refactor(node_taint_test): apply pod single creation convention for p15

This commit is contained in:
Jan Chaloupka
2025-12-15 16:55:21 +01:00
parent a363da9806
commit 2bbec0cbc6

View File

@@ -199,10 +199,11 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
})
p15 := buildTestPod("p15", nodeName7, nil)
test.SetNormalOwnerRef(p15)
p15 = addTolerationToPod(p15, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
p15 = addTolerationToPod(p15, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule)
p15 := buildTestPod("p15", nodeName7, func(pod *v1.Pod) {
test.SetNormalOwnerRef(pod)
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
addTolerationToPod(pod, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule)
})
var uint1, uint2 uint = 1, 2