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 p11

This commit is contained in:
Jan Chaloupka
2025-12-15 16:44:19 +01:00
parent a1678cd464
commit 4171af7e8a

View File

@@ -171,9 +171,10 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
pod.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
pod.Annotations = test.GetMirrorPodAnnotation()
})
p11 := buildTestPod("p11", nodeName2, nil)
p11 := buildTestPod("p11", nodeName2, func(pod *v1.Pod) {
pod.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
})
p12 := buildTestPod("p11", nodeName2, nil)
p11.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
p12.ObjectMeta.OwnerReferences = test.GetNormalPodOwnerRefList()
// The following 4 pods won't get evicted.