@@ -171,7 +171,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
171
171
wantPrioritizers : sets .NewString (
172
172
"EqualPriority" ,
173
173
"NodeAffinityPriority" ,
174
- "ImageLocalityPriority" ,
175
174
"LeastRequestedPriority" ,
176
175
"BalancedResourceAllocation" ,
177
176
"SelectorSpreadPriority" ,
@@ -185,6 +184,9 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
185
184
{Name : "NodeResources" },
186
185
{Name : "VolumeRestrictions" },
187
186
},
187
+ "ScorePlugin" : {
188
+ {Name : "ImageLocality" , Weight : 2 },
189
+ },
188
190
},
189
191
},
190
192
@@ -235,7 +237,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
235
237
),
236
238
wantPrioritizers : sets .NewString (
237
239
"EqualPriority" ,
238
- "ImageLocalityPriority" ,
239
240
"LeastRequestedPriority" ,
240
241
"BalancedResourceAllocation" ,
241
242
"SelectorSpreadPriority" ,
@@ -250,7 +251,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
250
251
{Name : "VolumeRestrictions" },
251
252
{Name : "TaintToleration" },
252
253
},
253
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
254
+ "ScorePlugin" : {
255
+ {Name : "ImageLocality" , Weight : 2 },
256
+ {Name : "TaintToleration" , Weight : 2 },
257
+ },
254
258
},
255
259
},
256
260
@@ -305,7 +309,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
305
309
),
306
310
wantPrioritizers : sets .NewString (
307
311
"EqualPriority" ,
308
- "ImageLocalityPriority" ,
309
312
"LeastRequestedPriority" ,
310
313
"BalancedResourceAllocation" ,
311
314
"SelectorSpreadPriority" ,
@@ -322,7 +325,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
322
325
{Name : "VolumeRestrictions" },
323
326
{Name : "TaintToleration" },
324
327
},
325
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
328
+ "ScorePlugin" : {
329
+ {Name : "ImageLocality" , Weight : 2 },
330
+ {Name : "TaintToleration" , Weight : 2 },
331
+ },
326
332
},
327
333
},
328
334
// Do not change this JSON after the corresponding release has been tagged.
@@ -386,7 +392,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
386
392
),
387
393
wantPrioritizers : sets .NewString (
388
394
"EqualPriority" ,
389
- "ImageLocalityPriority" ,
390
395
"LeastRequestedPriority" ,
391
396
"BalancedResourceAllocation" ,
392
397
"SelectorSpreadPriority" ,
@@ -403,7 +408,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
403
408
{Name : "VolumeRestrictions" },
404
409
{Name : "TaintToleration" },
405
410
},
406
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
411
+ "ScorePlugin" : {
412
+ {Name : "ImageLocality" , Weight : 2 },
413
+ {Name : "TaintToleration" , Weight : 2 },
414
+ },
407
415
},
408
416
wantExtenders : []schedulerapi.ExtenderConfig {{
409
417
URLPrefix : "/prefix" ,
@@ -480,7 +488,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
480
488
),
481
489
wantPrioritizers : sets .NewString (
482
490
"EqualPriority" ,
483
- "ImageLocalityPriority" ,
484
491
"LeastRequestedPriority" ,
485
492
"BalancedResourceAllocation" ,
486
493
"SelectorSpreadPriority" ,
@@ -497,7 +504,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
497
504
{Name : "VolumeRestrictions" },
498
505
{Name : "TaintToleration" },
499
506
},
500
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
507
+ "ScorePlugin" : {
508
+ {Name : "ImageLocality" , Weight : 2 },
509
+ {Name : "TaintToleration" , Weight : 2 },
510
+ },
501
511
},
502
512
wantExtenders : []schedulerapi.ExtenderConfig {{
503
513
URLPrefix : "/prefix" ,
@@ -575,7 +585,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
575
585
),
576
586
wantPrioritizers : sets .NewString (
577
587
"EqualPriority" ,
578
- "ImageLocalityPriority" ,
579
588
"LeastRequestedPriority" ,
580
589
"BalancedResourceAllocation" ,
581
590
"SelectorSpreadPriority" ,
@@ -593,7 +602,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
593
602
{Name : "TaintToleration" },
594
603
{Name : "VolumeBinding" },
595
604
},
596
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
605
+ "ScorePlugin" : {
606
+ {Name : "ImageLocality" , Weight : 2 },
607
+ {Name : "TaintToleration" , Weight : 2 },
608
+ },
597
609
},
598
610
wantExtenders : []schedulerapi.ExtenderConfig {{
599
611
URLPrefix : "/prefix" ,
@@ -676,7 +688,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
676
688
),
677
689
wantPrioritizers : sets .NewString (
678
690
"EqualPriority" ,
679
- "ImageLocalityPriority" ,
680
691
"LeastRequestedPriority" ,
681
692
"BalancedResourceAllocation" ,
682
693
"SelectorSpreadPriority" ,
@@ -694,7 +705,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
694
705
{Name : "TaintToleration" },
695
706
{Name : "VolumeBinding" },
696
707
},
697
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
708
+ "ScorePlugin" : {
709
+ {Name : "ImageLocality" , Weight : 2 },
710
+ {Name : "TaintToleration" , Weight : 2 },
711
+ },
698
712
},
699
713
wantExtenders : []schedulerapi.ExtenderConfig {{
700
714
URLPrefix : "/prefix" ,
@@ -789,7 +803,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
789
803
),
790
804
wantPrioritizers : sets .NewString (
791
805
"EqualPriority" ,
792
- "ImageLocalityPriority" ,
793
806
"LeastRequestedPriority" ,
794
807
"BalancedResourceAllocation" ,
795
808
"SelectorSpreadPriority" ,
@@ -808,7 +821,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
808
821
{Name : "TaintToleration" },
809
822
{Name : "VolumeBinding" },
810
823
},
811
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
824
+ "ScorePlugin" : {
825
+ {Name : "ImageLocality" , Weight : 2 },
826
+ {Name : "TaintToleration" , Weight : 2 },
827
+ },
812
828
},
813
829
wantExtenders : []schedulerapi.ExtenderConfig {{
814
830
URLPrefix : "/prefix" ,
@@ -905,7 +921,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
905
921
),
906
922
wantPrioritizers : sets .NewString (
907
923
"EqualPriority" ,
908
- "ImageLocalityPriority" ,
909
924
"LeastRequestedPriority" ,
910
925
"BalancedResourceAllocation" ,
911
926
"SelectorSpreadPriority" ,
@@ -924,7 +939,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
924
939
{Name : "TaintToleration" },
925
940
{Name : "VolumeBinding" },
926
941
},
927
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
942
+ "ScorePlugin" : {
943
+ {Name : "ImageLocality" , Weight : 2 },
944
+ {Name : "TaintToleration" , Weight : 2 },
945
+ },
928
946
},
929
947
wantExtenders : []schedulerapi.ExtenderConfig {{
930
948
URLPrefix : "/prefix" ,
@@ -1021,7 +1039,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1021
1039
),
1022
1040
wantPrioritizers : sets .NewString (
1023
1041
"EqualPriority" ,
1024
- "ImageLocalityPriority" ,
1025
1042
"LeastRequestedPriority" ,
1026
1043
"BalancedResourceAllocation" ,
1027
1044
"SelectorSpreadPriority" ,
@@ -1040,7 +1057,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1040
1057
{Name : "TaintToleration" },
1041
1058
{Name : "VolumeBinding" },
1042
1059
},
1043
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
1060
+ "ScorePlugin" : {
1061
+ {Name : "ImageLocality" , Weight : 2 },
1062
+ {Name : "TaintToleration" , Weight : 2 },
1063
+ },
1044
1064
},
1045
1065
wantExtenders : []schedulerapi.ExtenderConfig {{
1046
1066
URLPrefix : "/prefix" ,
@@ -1141,7 +1161,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1141
1161
),
1142
1162
wantPrioritizers : sets .NewString (
1143
1163
"EqualPriority" ,
1144
- "ImageLocalityPriority" ,
1145
1164
"LeastRequestedPriority" ,
1146
1165
"BalancedResourceAllocation" ,
1147
1166
"SelectorSpreadPriority" ,
@@ -1160,7 +1179,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1160
1179
{Name : "TaintToleration" },
1161
1180
{Name : "VolumeBinding" },
1162
1181
},
1163
- "ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
1182
+ "ScorePlugin" : {
1183
+ {Name : "ImageLocality" , Weight : 2 },
1184
+ {Name : "TaintToleration" , Weight : 2 },
1185
+ },
1164
1186
},
1165
1187
wantExtenders : []schedulerapi.ExtenderConfig {{
1166
1188
URLPrefix : "/prefix" ,
@@ -1192,6 +1214,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1192
1214
}
1193
1215
scoreToPriorityMap := map [string ]string {
1194
1216
"TaintToleration" : "TaintTolerationPriority" ,
1217
+ "ImageLocality" : "ImageLocalityPriority" ,
1195
1218
}
1196
1219
1197
1220
for v , tc := range schedulerFiles {
@@ -1245,7 +1268,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1245
1268
seenPredicates .Insert (filterToPredicateMap [p .Name ])
1246
1269
1247
1270
}
1248
- for _ , p := range gotPlugins ["FilterPlugin " ] {
1271
+ for _ , p := range gotPlugins ["ScorePlugin " ] {
1249
1272
seenPriorities .Insert (scoreToPriorityMap [p .Name ])
1250
1273
1251
1274
}
0 commit comments