@@ -259,10 +259,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
259
259
{"name": "InterPodAffinityPriority", "weight": 2}
260
260
]
261
261
}` ,
262
- wantPredicates : sets .NewString (),
263
- wantPrioritizers : sets .NewString (
264
- "InterPodAffinityPriority" ,
265
- ),
262
+ wantPredicates : sets .NewString (),
263
+ wantPrioritizers : sets .NewString (),
266
264
wantPlugins : map [string ][]config.Plugin {
267
265
"FilterPlugin" : {
268
266
{Name : "NodeUnschedulable" },
@@ -283,6 +281,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
283
281
"ScorePlugin" : {
284
282
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
285
283
{Name : "ImageLocality" , Weight : 2 },
284
+ {Name : "InterPodAffinity" , Weight : 2 },
286
285
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
287
286
{Name : "NodeAffinity" , Weight : 2 },
288
287
{Name : "DefaultPodTopologySpread" , Weight : 2 },
@@ -325,10 +324,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
325
324
{"name": "MostRequestedPriority", "weight": 2}
326
325
]
327
326
}` ,
328
- wantPredicates : sets .NewString (),
329
- wantPrioritizers : sets .NewString (
330
- "InterPodAffinityPriority" ,
331
- ),
327
+ wantPredicates : sets .NewString (),
328
+ wantPrioritizers : sets .NewString (),
332
329
wantPlugins : map [string ][]config.Plugin {
333
330
"FilterPlugin" : {
334
331
{Name : "NodeUnschedulable" },
@@ -349,6 +346,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
349
346
"ScorePlugin" : {
350
347
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
351
348
{Name : "ImageLocality" , Weight : 2 },
349
+ {Name : "InterPodAffinity" , Weight : 2 },
352
350
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
353
351
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
354
352
{Name : "NodeAffinity" , Weight : 2 },
@@ -402,10 +400,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
402
400
"nodeCacheCapable": true
403
401
}]
404
402
}` ,
405
- wantPredicates : sets .NewString (),
406
- wantPrioritizers : sets .NewString (
407
- "InterPodAffinityPriority" ,
408
- ),
403
+ wantPredicates : sets .NewString (),
404
+ wantPrioritizers : sets .NewString (),
409
405
wantPlugins : map [string ][]config.Plugin {
410
406
"FilterPlugin" : {
411
407
{Name : "NodeUnschedulable" },
@@ -426,6 +422,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
426
422
"ScorePlugin" : {
427
423
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
428
424
{Name : "ImageLocality" , Weight : 2 },
425
+ {Name : "InterPodAffinity" , Weight : 2 },
429
426
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
430
427
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
431
428
{Name : "NodeAffinity" , Weight : 2 },
@@ -490,10 +487,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
490
487
"nodeCacheCapable": true
491
488
}]
492
489
}` ,
493
- wantPredicates : sets .NewString (),
494
- wantPrioritizers : sets .NewString (
495
- "InterPodAffinityPriority" ,
496
- ),
490
+ wantPredicates : sets .NewString (),
491
+ wantPrioritizers : sets .NewString (),
497
492
wantPlugins : map [string ][]config.Plugin {
498
493
"FilterPlugin" : {
499
494
{Name : "NodeUnschedulable" },
@@ -514,6 +509,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
514
509
"ScorePlugin" : {
515
510
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
516
511
{Name : "ImageLocality" , Weight : 2 },
512
+ {Name : "InterPodAffinity" , Weight : 2 },
517
513
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
518
514
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
519
515
{Name : "NodeAffinity" , Weight : 2 },
@@ -579,10 +575,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
579
575
"nodeCacheCapable": true
580
576
}]
581
577
}` ,
582
- wantPredicates : sets .NewString (),
583
- wantPrioritizers : sets .NewString (
584
- "InterPodAffinityPriority" ,
585
- ),
578
+ wantPredicates : sets .NewString (),
579
+ wantPrioritizers : sets .NewString (),
586
580
wantPlugins : map [string ][]config.Plugin {
587
581
"FilterPlugin" : {
588
582
{Name : "NodeUnschedulable" },
@@ -604,6 +598,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
604
598
"ScorePlugin" : {
605
599
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
606
600
{Name : "ImageLocality" , Weight : 2 },
601
+ {Name : "InterPodAffinity" , Weight : 2 },
607
602
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
608
603
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
609
604
{Name : "NodeAffinity" , Weight : 2 },
@@ -672,10 +667,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
672
667
"ignorable":true
673
668
}]
674
669
}` ,
675
- wantPredicates : sets .NewString (),
676
- wantPrioritizers : sets .NewString (
677
- "InterPodAffinityPriority" ,
678
- ),
670
+ wantPredicates : sets .NewString (),
671
+ wantPrioritizers : sets .NewString (),
679
672
wantPlugins : map [string ][]config.Plugin {
680
673
"FilterPlugin" : {
681
674
{Name : "NodeUnschedulable" },
@@ -697,6 +690,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
697
690
"ScorePlugin" : {
698
691
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
699
692
{Name : "ImageLocality" , Weight : 2 },
693
+ {Name : "InterPodAffinity" , Weight : 2 },
700
694
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
701
695
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
702
696
{Name : "NodeAffinity" , Weight : 2 },
@@ -777,10 +771,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
777
771
"ignorable":true
778
772
}]
779
773
}` ,
780
- wantPredicates : sets .NewString (),
781
- wantPrioritizers : sets .NewString (
782
- "InterPodAffinityPriority" ,
783
- ),
774
+ wantPredicates : sets .NewString (),
775
+ wantPrioritizers : sets .NewString (),
784
776
wantPlugins : map [string ][]config.Plugin {
785
777
"FilterPlugin" : {
786
778
{Name : "NodeUnschedulable" },
@@ -802,6 +794,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
802
794
"ScorePlugin" : {
803
795
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
804
796
{Name : "ImageLocality" , Weight : 2 },
797
+ {Name : "InterPodAffinity" , Weight : 2 },
805
798
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
806
799
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
807
800
{Name : "NodeAffinity" , Weight : 2 },
@@ -884,10 +877,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
884
877
"ignorable":true
885
878
}]
886
879
}` ,
887
- wantPredicates : sets .NewString (),
888
- wantPrioritizers : sets .NewString (
889
- "InterPodAffinityPriority" ,
890
- ),
880
+ wantPredicates : sets .NewString (),
881
+ wantPrioritizers : sets .NewString (),
891
882
wantPlugins : map [string ][]config.Plugin {
892
883
"FilterPlugin" : {
893
884
{Name : "NodeUnschedulable" },
@@ -910,6 +901,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
910
901
"ScorePlugin" : {
911
902
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
912
903
{Name : "ImageLocality" , Weight : 2 },
904
+ {Name : "InterPodAffinity" , Weight : 2 },
913
905
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
914
906
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
915
907
{Name : "NodeAffinity" , Weight : 2 },
@@ -991,10 +983,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
991
983
"ignorable":true
992
984
}]
993
985
}` ,
994
- wantPredicates : sets .NewString (),
995
- wantPrioritizers : sets .NewString (
996
- "InterPodAffinityPriority" ,
997
- ),
986
+ wantPredicates : sets .NewString (),
987
+ wantPrioritizers : sets .NewString (),
998
988
wantPlugins : map [string ][]config.Plugin {
999
989
"FilterPlugin" : {
1000
990
{Name : "NodeUnschedulable" },
@@ -1018,6 +1008,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1018
1008
"ScorePlugin" : {
1019
1009
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
1020
1010
{Name : "ImageLocality" , Weight : 2 },
1011
+ {Name : "InterPodAffinity" , Weight : 2 },
1021
1012
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
1022
1013
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
1023
1014
{Name : "NodeAffinity" , Weight : 2 },
@@ -1103,10 +1094,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1103
1094
"ignorable":true
1104
1095
}]
1105
1096
}` ,
1106
- wantPredicates : sets .NewString (),
1107
- wantPrioritizers : sets .NewString (
1108
- "InterPodAffinityPriority" ,
1109
- ),
1097
+ wantPredicates : sets .NewString (),
1098
+ wantPrioritizers : sets .NewString (),
1110
1099
wantPlugins : map [string ][]config.Plugin {
1111
1100
"FilterPlugin" : {
1112
1101
{Name : "NodeUnschedulable" },
@@ -1130,6 +1119,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1130
1119
"ScorePlugin" : {
1131
1120
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
1132
1121
{Name : "ImageLocality" , Weight : 2 },
1122
+ {Name : "InterPodAffinity" , Weight : 2 },
1133
1123
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
1134
1124
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
1135
1125
{Name : "NodeAffinity" , Weight : 2 },
@@ -1231,6 +1221,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1231
1221
scoreToPriorityMap := map [string ]string {
1232
1222
"DefaultPodTopologySpread" : "SelectorSpreadPriority" ,
1233
1223
"ImageLocality" : "ImageLocalityPriority" ,
1224
+ "InterPodAffinity" : "InterPodAffinityPriority" ,
1234
1225
"NodeAffinity" : "NodeAffinityPriority" ,
1235
1226
"NodePreferAvoidPods" : "NodePreferAvoidPodsPriority" ,
1236
1227
"TaintToleration" : "TaintTolerationPriority" ,
0 commit comments