@@ -149,7 +149,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
149
149
),
150
150
wantPrioritizers : sets .NewString (
151
151
"EqualPriority" ,
152
- "SelectorSpreadPriority" ,
153
152
"TestServiceAntiAffinity" ,
154
153
),
155
154
wantPlugins : map [string ][]config.Plugin {
@@ -167,6 +166,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
167
166
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
168
167
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
169
168
{Name : "NodeLabel" , Weight : 4 },
169
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
170
170
},
171
171
},
172
172
},
@@ -205,7 +205,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
205
205
),
206
206
wantPrioritizers : sets .NewString (
207
207
"EqualPriority" ,
208
- "SelectorSpreadPriority" ,
209
208
"TestServiceAntiAffinity" ,
210
209
),
211
210
wantPlugins : map [string ][]config.Plugin {
@@ -229,6 +228,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
229
228
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
230
229
{Name : "NodeAffinity" , Weight : 2 },
231
230
{Name : "NodeLabel" , Weight : 4 },
231
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
232
232
},
233
233
},
234
234
},
@@ -270,7 +270,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
270
270
),
271
271
wantPrioritizers : sets .NewString (
272
272
"EqualPriority" ,
273
- "SelectorSpreadPriority" ,
274
273
"InterPodAffinityPriority" ,
275
274
),
276
275
wantPlugins : map [string ][]config.Plugin {
@@ -294,6 +293,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
294
293
{Name : "ImageLocality" , Weight : 2 },
295
294
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
296
295
{Name : "NodeAffinity" , Weight : 2 },
296
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
297
297
{Name : "TaintToleration" , Weight : 2 },
298
298
},
299
299
},
@@ -338,7 +338,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
338
338
),
339
339
wantPrioritizers : sets .NewString (
340
340
"EqualPriority" ,
341
- "SelectorSpreadPriority" ,
342
341
"InterPodAffinityPriority" ,
343
342
),
344
343
wantPlugins : map [string ][]config.Plugin {
@@ -364,6 +363,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
364
363
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
365
364
{Name : "NodeAffinity" , Weight : 2 },
366
365
{Name : "NodePreferAvoidPods" , Weight : 2 },
366
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
367
367
{Name : "TaintToleration" , Weight : 2 },
368
368
},
369
369
},
@@ -417,7 +417,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
417
417
),
418
418
wantPrioritizers : sets .NewString (
419
419
"EqualPriority" ,
420
- "SelectorSpreadPriority" ,
421
420
"InterPodAffinityPriority" ,
422
421
),
423
422
wantPlugins : map [string ][]config.Plugin {
@@ -443,6 +442,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
443
442
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
444
443
{Name : "NodeAffinity" , Weight : 2 },
445
444
{Name : "NodePreferAvoidPods" , Weight : 2 },
445
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
446
446
{Name : "TaintToleration" , Weight : 2 },
447
447
},
448
448
},
@@ -507,7 +507,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
507
507
),
508
508
wantPrioritizers : sets .NewString (
509
509
"EqualPriority" ,
510
- "SelectorSpreadPriority" ,
511
510
"InterPodAffinityPriority" ,
512
511
),
513
512
wantPlugins : map [string ][]config.Plugin {
@@ -533,6 +532,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
533
532
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
534
533
{Name : "NodeAffinity" , Weight : 2 },
535
534
{Name : "NodePreferAvoidPods" , Weight : 2 },
535
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
536
536
{Name : "TaintToleration" , Weight : 2 },
537
537
},
538
538
},
@@ -598,7 +598,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
598
598
),
599
599
wantPrioritizers : sets .NewString (
600
600
"EqualPriority" ,
601
- "SelectorSpreadPriority" ,
602
601
"InterPodAffinityPriority" ,
603
602
),
604
603
wantPlugins : map [string ][]config.Plugin {
@@ -625,6 +624,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
625
624
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
626
625
{Name : "NodeAffinity" , Weight : 2 },
627
626
{Name : "NodePreferAvoidPods" , Weight : 2 },
627
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
628
628
{Name : "TaintToleration" , Weight : 2 },
629
629
},
630
630
},
@@ -693,7 +693,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
693
693
),
694
694
wantPrioritizers : sets .NewString (
695
695
"EqualPriority" ,
696
- "SelectorSpreadPriority" ,
697
696
"InterPodAffinityPriority" ,
698
697
),
699
698
wantPlugins : map [string ][]config.Plugin {
@@ -720,6 +719,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
720
719
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
721
720
{Name : "NodeAffinity" , Weight : 2 },
722
721
{Name : "NodePreferAvoidPods" , Weight : 2 },
722
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
723
723
{Name : "TaintToleration" , Weight : 2 },
724
724
},
725
725
},
@@ -800,7 +800,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
800
800
),
801
801
wantPrioritizers : sets .NewString (
802
802
"EqualPriority" ,
803
- "SelectorSpreadPriority" ,
804
803
"InterPodAffinityPriority" ,
805
804
),
806
805
wantPlugins : map [string ][]config.Plugin {
@@ -828,6 +827,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
828
827
{Name : "NodeAffinity" , Weight : 2 },
829
828
{Name : "NodePreferAvoidPods" , Weight : 2 },
830
829
{Name : "RequestedToCapacityRatio" , Weight : 2 },
830
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
831
831
{Name : "TaintToleration" , Weight : 2 },
832
832
},
833
833
},
@@ -909,7 +909,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
909
909
),
910
910
wantPrioritizers : sets .NewString (
911
911
"EqualPriority" ,
912
- "SelectorSpreadPriority" ,
913
912
"InterPodAffinityPriority" ,
914
913
),
915
914
wantPlugins : map [string ][]config.Plugin {
@@ -938,6 +937,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
938
937
{Name : "NodeAffinity" , Weight : 2 },
939
938
{Name : "NodePreferAvoidPods" , Weight : 2 },
940
939
{Name : "RequestedToCapacityRatio" , Weight : 2 },
940
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
941
941
{Name : "TaintToleration" , Weight : 2 },
942
942
},
943
943
},
@@ -1018,7 +1018,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1018
1018
),
1019
1019
wantPrioritizers : sets .NewString (
1020
1020
"EqualPriority" ,
1021
- "SelectorSpreadPriority" ,
1022
1021
"InterPodAffinityPriority" ,
1023
1022
),
1024
1023
wantPlugins : map [string ][]config.Plugin {
@@ -1048,6 +1047,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1048
1047
{Name : "NodeAffinity" , Weight : 2 },
1049
1048
{Name : "NodePreferAvoidPods" , Weight : 2 },
1050
1049
{Name : "RequestedToCapacityRatio" , Weight : 2 },
1050
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
1051
1051
{Name : "TaintToleration" , Weight : 2 },
1052
1052
},
1053
1053
},
@@ -1132,7 +1132,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1132
1132
),
1133
1133
wantPrioritizers : sets .NewString (
1134
1134
"EqualPriority" ,
1135
- "SelectorSpreadPriority" ,
1136
1135
"InterPodAffinityPriority" ,
1137
1136
),
1138
1137
wantPlugins : map [string ][]config.Plugin {
@@ -1162,6 +1161,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1162
1161
{Name : "NodeAffinity" , Weight : 2 },
1163
1162
{Name : "NodePreferAvoidPods" , Weight : 2 },
1164
1163
{Name : "RequestedToCapacityRatio" , Weight : 2 },
1164
+ {Name : "DefaultPodTopologySpread" , Weight : 2 },
1165
1165
{Name : "TaintToleration" , Weight : 2 },
1166
1166
},
1167
1167
},
@@ -1255,6 +1255,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1255
1255
"PodTopologySpread" : "EvenPodsSpread" ,
1256
1256
}
1257
1257
scoreToPriorityMap := map [string ]string {
1258
+ "DefaultPodTopologySpread" : "SelectorSpreadPriority" ,
1258
1259
"ImageLocality" : "ImageLocalityPriority" ,
1259
1260
"NodeAffinity" : "NodeAffinityPriority" ,
1260
1261
"NodePreferAvoidPods" : "NodePreferAvoidPodsPriority" ,
0 commit comments