@@ -261,10 +261,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
261
261
{"name": "InterPodAffinityPriority", "weight": 2}
262
262
]
263
263
}` ,
264
- wantPredicates : sets .NewString (),
265
- wantPrioritizers : sets .NewString (
266
- "InterPodAffinityPriority" ,
267
- ),
264
+ wantPredicates : sets .NewString (),
265
+ wantPrioritizers : sets .NewString (),
268
266
wantPlugins : map [string ][]config.Plugin {
269
267
"FilterPlugin" : {
270
268
{Name : "NodeUnschedulable" },
@@ -285,6 +283,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
285
283
"ScorePlugin" : {
286
284
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
287
285
{Name : "ImageLocality" , Weight : 2 },
286
+ {Name : "InterPodAffinity" , Weight : 2 },
288
287
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
289
288
{Name : "NodeAffinity" , Weight : 2 },
290
289
{Name : "DefaultPodTopologySpread" , Weight : 2 },
@@ -327,10 +326,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
327
326
{"name": "MostRequestedPriority", "weight": 2}
328
327
]
329
328
}` ,
330
- wantPredicates : sets .NewString (),
331
- wantPrioritizers : sets .NewString (
332
- "InterPodAffinityPriority" ,
333
- ),
329
+ wantPredicates : sets .NewString (),
330
+ wantPrioritizers : sets .NewString (),
334
331
wantPlugins : map [string ][]config.Plugin {
335
332
"FilterPlugin" : {
336
333
{Name : "NodeUnschedulable" },
@@ -351,6 +348,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
351
348
"ScorePlugin" : {
352
349
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
353
350
{Name : "ImageLocality" , Weight : 2 },
351
+ {Name : "InterPodAffinity" , Weight : 2 },
354
352
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
355
353
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
356
354
{Name : "NodeAffinity" , Weight : 2 },
@@ -404,10 +402,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
404
402
"nodeCacheCapable": true
405
403
}]
406
404
}` ,
407
- wantPredicates : sets .NewString (),
408
- wantPrioritizers : sets .NewString (
409
- "InterPodAffinityPriority" ,
410
- ),
405
+ wantPredicates : sets .NewString (),
406
+ wantPrioritizers : sets .NewString (),
411
407
wantPlugins : map [string ][]config.Plugin {
412
408
"FilterPlugin" : {
413
409
{Name : "NodeUnschedulable" },
@@ -428,6 +424,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
428
424
"ScorePlugin" : {
429
425
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
430
426
{Name : "ImageLocality" , Weight : 2 },
427
+ {Name : "InterPodAffinity" , Weight : 2 },
431
428
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
432
429
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
433
430
{Name : "NodeAffinity" , Weight : 2 },
@@ -492,10 +489,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
492
489
"nodeCacheCapable": true
493
490
}]
494
491
}` ,
495
- wantPredicates : sets .NewString (),
496
- wantPrioritizers : sets .NewString (
497
- "InterPodAffinityPriority" ,
498
- ),
492
+ wantPredicates : sets .NewString (),
493
+ wantPrioritizers : sets .NewString (),
499
494
wantPlugins : map [string ][]config.Plugin {
500
495
"FilterPlugin" : {
501
496
{Name : "NodeUnschedulable" },
@@ -516,6 +511,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
516
511
"ScorePlugin" : {
517
512
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
518
513
{Name : "ImageLocality" , Weight : 2 },
514
+ {Name : "InterPodAffinity" , Weight : 2 },
519
515
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
520
516
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
521
517
{Name : "NodeAffinity" , Weight : 2 },
@@ -581,10 +577,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
581
577
"nodeCacheCapable": true
582
578
}]
583
579
}` ,
584
- wantPredicates : sets .NewString (),
585
- wantPrioritizers : sets .NewString (
586
- "InterPodAffinityPriority" ,
587
- ),
580
+ wantPredicates : sets .NewString (),
581
+ wantPrioritizers : sets .NewString (),
588
582
wantPlugins : map [string ][]config.Plugin {
589
583
"FilterPlugin" : {
590
584
{Name : "NodeUnschedulable" },
@@ -606,6 +600,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
606
600
"ScorePlugin" : {
607
601
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
608
602
{Name : "ImageLocality" , Weight : 2 },
603
+ {Name : "InterPodAffinity" , Weight : 2 },
609
604
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
610
605
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
611
606
{Name : "NodeAffinity" , Weight : 2 },
@@ -674,10 +669,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
674
669
"ignorable":true
675
670
}]
676
671
}` ,
677
- wantPredicates : sets .NewString (),
678
- wantPrioritizers : sets .NewString (
679
- "InterPodAffinityPriority" ,
680
- ),
672
+ wantPredicates : sets .NewString (),
673
+ wantPrioritizers : sets .NewString (),
681
674
wantPlugins : map [string ][]config.Plugin {
682
675
"FilterPlugin" : {
683
676
{Name : "NodeUnschedulable" },
@@ -699,6 +692,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
699
692
"ScorePlugin" : {
700
693
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
701
694
{Name : "ImageLocality" , Weight : 2 },
695
+ {Name : "InterPodAffinity" , Weight : 2 },
702
696
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
703
697
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
704
698
{Name : "NodeAffinity" , Weight : 2 },
@@ -779,10 +773,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
779
773
"ignorable":true
780
774
}]
781
775
}` ,
782
- wantPredicates : sets .NewString (),
783
- wantPrioritizers : sets .NewString (
784
- "InterPodAffinityPriority" ,
785
- ),
776
+ wantPredicates : sets .NewString (),
777
+ wantPrioritizers : sets .NewString (),
786
778
wantPlugins : map [string ][]config.Plugin {
787
779
"FilterPlugin" : {
788
780
{Name : "NodeUnschedulable" },
@@ -804,6 +796,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
804
796
"ScorePlugin" : {
805
797
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
806
798
{Name : "ImageLocality" , Weight : 2 },
799
+ {Name : "InterPodAffinity" , Weight : 2 },
807
800
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
808
801
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
809
802
{Name : "NodeAffinity" , Weight : 2 },
@@ -886,10 +879,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
886
879
"ignorable":true
887
880
}]
888
881
}` ,
889
- wantPredicates : sets .NewString (),
890
- wantPrioritizers : sets .NewString (
891
- "InterPodAffinityPriority" ,
892
- ),
882
+ wantPredicates : sets .NewString (),
883
+ wantPrioritizers : sets .NewString (),
893
884
wantPlugins : map [string ][]config.Plugin {
894
885
"FilterPlugin" : {
895
886
{Name : "NodeUnschedulable" },
@@ -912,6 +903,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
912
903
"ScorePlugin" : {
913
904
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
914
905
{Name : "ImageLocality" , Weight : 2 },
906
+ {Name : "InterPodAffinity" , Weight : 2 },
915
907
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
916
908
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
917
909
{Name : "NodeAffinity" , Weight : 2 },
@@ -993,10 +985,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
993
985
"ignorable":true
994
986
}]
995
987
}` ,
996
- wantPredicates : sets .NewString (),
997
- wantPrioritizers : sets .NewString (
998
- "InterPodAffinityPriority" ,
999
- ),
988
+ wantPredicates : sets .NewString (),
989
+ wantPrioritizers : sets .NewString (),
1000
990
wantPlugins : map [string ][]config.Plugin {
1001
991
"FilterPlugin" : {
1002
992
{Name : "NodeUnschedulable" },
@@ -1020,6 +1010,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1020
1010
"ScorePlugin" : {
1021
1011
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
1022
1012
{Name : "ImageLocality" , Weight : 2 },
1013
+ {Name : "InterPodAffinity" , Weight : 2 },
1023
1014
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
1024
1015
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
1025
1016
{Name : "NodeAffinity" , Weight : 2 },
@@ -1105,10 +1096,8 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1105
1096
"ignorable":true
1106
1097
}]
1107
1098
}` ,
1108
- wantPredicates : sets .NewString (),
1109
- wantPrioritizers : sets .NewString (
1110
- "InterPodAffinityPriority" ,
1111
- ),
1099
+ wantPredicates : sets .NewString (),
1100
+ wantPrioritizers : sets .NewString (),
1112
1101
wantPlugins : map [string ][]config.Plugin {
1113
1102
"FilterPlugin" : {
1114
1103
{Name : "NodeUnschedulable" },
@@ -1132,6 +1121,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1132
1121
"ScorePlugin" : {
1133
1122
{Name : "NodeResourcesBalancedAllocation" , Weight : 2 },
1134
1123
{Name : "ImageLocality" , Weight : 2 },
1124
+ {Name : "InterPodAffinity" , Weight : 2 },
1135
1125
{Name : "NodeResourcesLeastAllocated" , Weight : 2 },
1136
1126
{Name : "NodeResourcesMostAllocated" , Weight : 2 },
1137
1127
{Name : "NodeAffinity" , Weight : 2 },
@@ -1233,6 +1223,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1233
1223
scoreToPriorityMap := map [string ]string {
1234
1224
"DefaultPodTopologySpread" : "SelectorSpreadPriority" ,
1235
1225
"ImageLocality" : "ImageLocalityPriority" ,
1226
+ "InterPodAffinity" : "InterPodAffinityPriority" ,
1236
1227
"NodeAffinity" : "NodeAffinityPriority" ,
1237
1228
"NodePreferAvoidPods" : "NodePreferAvoidPodsPriority" ,
1238
1229
"TaintToleration" : "TaintTolerationPriority" ,
0 commit comments