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 p11
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user