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 p6

This commit is contained in:
Jan Chaloupka
2025-12-15 16:42:00 +01:00
parent b86315f097
commit 1b7889f4a3

View File

@@ -141,14 +141,15 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
p5 := buildTestPod("p5", nodeName1, func(pod *v1.Pod) {
pod.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
})
p6 := buildTestPod("p6", nodeName1, nil)
p6 := buildTestPod("p6", nodeName1, func(pod *v1.Pod) {
pod.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
})
p7 := buildTestPod("p7", nodeName2, nil)
p8 := buildTestPod("p8", nodeName2, nil)
p9 := buildTestPod("p9", nodeName2, nil)
p10 := buildTestPod("p10", nodeName2, nil)
p11 := buildTestPod("p11", nodeName2, nil)
p12 := buildTestPod("p11", nodeName2, nil)
p6.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
p7.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
p8.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
p9.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()