mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-25 20:59:28 +01:00
refactor(TestDefaultEvictor): replace mirror pod annotation assignments with test.SetMirrorPodAnnotation
This commit is contained in:
@@ -463,7 +463,7 @@ func TestDefaultEvictorFilter(t *testing.T) {
|
||||
pods: []*v1.Pod{
|
||||
buildTestPod("p10", n1.Name, func(pod *v1.Pod) {
|
||||
test.SetNormalOwnerRef(pod)
|
||||
pod.Annotations = test.GetMirrorPodAnnotation()
|
||||
test.SetMirrorPodAnnotation(pod)
|
||||
}),
|
||||
},
|
||||
},
|
||||
@@ -472,7 +472,7 @@ func TestDefaultEvictorFilter(t *testing.T) {
|
||||
pods: []*v1.Pod{
|
||||
buildTestPod("p11", n1.Name, func(pod *v1.Pod) {
|
||||
test.SetNormalOwnerRef(pod)
|
||||
pod.Annotations = test.GetMirrorPodAnnotation()
|
||||
test.SetMirrorPodAnnotation(pod)
|
||||
pod.Annotations[evictPodAnnotationKey] = "true"
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user