@@ -69,7 +69,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
69
69
"MatchNodeSelector" ,
70
70
"PodFitsResources" ,
71
71
"PodFitsPorts" ,
72
- "NoDiskConflict" ,
73
72
"TestServiceAffinity" ,
74
73
"TestLabelsPresence" ,
75
74
),
@@ -79,6 +78,11 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
79
78
"TestServiceAntiAffinity" ,
80
79
"TestLabelPreference" ,
81
80
),
81
+ wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
82
+ "FilterPlugin" : {
83
+ {Name : "VolumeRestrictions" },
84
+ },
85
+ },
82
86
},
83
87
84
88
// Do not change this JSON after the corresponding release has been tagged.
@@ -108,7 +112,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
108
112
"MatchNodeSelector" ,
109
113
"PodFitsHostPorts" ,
110
114
"PodFitsResources" ,
111
- "NoDiskConflict" ,
112
115
"TestServiceAffinity" ,
113
116
"TestLabelsPresence" ,
114
117
),
@@ -123,6 +126,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
123
126
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
124
127
"FilterPlugin" : {
125
128
{Name : "NodeName" },
129
+ {Name : "VolumeRestrictions" },
126
130
},
127
131
},
128
132
},
@@ -160,7 +164,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
160
164
"MatchNodeSelector" ,
161
165
"PodFitsResources" ,
162
166
"PodFitsHostPorts" ,
163
- "NoDiskConflict" ,
164
167
"NoVolumeZoneConflict" ,
165
168
"MaxEBSVolumeCount" ,
166
169
"MaxGCEPDVolumeCount" ,
@@ -181,6 +184,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
181
184
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
182
185
"FilterPlugin" : {
183
186
{Name : "NodeName" },
187
+ {Name : "VolumeRestrictions" },
184
188
},
185
189
},
186
190
},
@@ -222,7 +226,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
222
226
"MatchNodeSelector" ,
223
227
"PodFitsResources" ,
224
228
"PodFitsHostPorts" ,
225
- "NoDiskConflict" ,
226
229
"NoVolumeZoneConflict" ,
227
230
"CheckNodeMemoryPressure" ,
228
231
"MaxEBSVolumeCount" ,
@@ -245,6 +248,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
245
248
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
246
249
"FilterPlugin" : {
247
250
{Name : "NodeName" },
251
+ {Name : "VolumeRestrictions" },
248
252
{Name : "TaintToleration" },
249
253
},
250
254
"ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
@@ -291,7 +295,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
291
295
"MatchNodeSelector" ,
292
296
"PodFitsResources" ,
293
297
"PodFitsHostPorts" ,
294
- "NoDiskConflict" ,
295
298
"NoVolumeZoneConflict" ,
296
299
"CheckNodeMemoryPressure" ,
297
300
"CheckNodeDiskPressure" ,
@@ -317,6 +320,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
317
320
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
318
321
"FilterPlugin" : {
319
322
{Name : "NodeName" },
323
+ {Name : "VolumeRestrictions" },
320
324
{Name : "TaintToleration" },
321
325
},
322
326
"ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
@@ -372,7 +376,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
372
376
"MatchNodeSelector" ,
373
377
"PodFitsResources" ,
374
378
"PodFitsHostPorts" ,
375
- "NoDiskConflict" ,
376
379
"NoVolumeZoneConflict" ,
377
380
"CheckNodeMemoryPressure" ,
378
381
"CheckNodeDiskPressure" ,
@@ -398,6 +401,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
398
401
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
399
402
"FilterPlugin" : {
400
403
{Name : "NodeName" },
404
+ {Name : "VolumeRestrictions" },
401
405
{Name : "TaintToleration" },
402
406
},
403
407
"ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
@@ -465,7 +469,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
465
469
"MatchNodeSelector" ,
466
470
"PodFitsResources" ,
467
471
"PodFitsHostPorts" ,
468
- "NoDiskConflict" ,
469
472
"NoVolumeZoneConflict" ,
470
473
"CheckNodeMemoryPressure" ,
471
474
"CheckNodeDiskPressure" ,
@@ -492,6 +495,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
492
495
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
493
496
"FilterPlugin" : {
494
497
{Name : "NodeName" },
498
+ {Name : "VolumeRestrictions" },
495
499
{Name : "TaintToleration" },
496
500
},
497
501
"ScorePlugin" : {{Name : "TaintToleration" , Weight : 2 }},
@@ -560,7 +564,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
560
564
"MatchNodeSelector" ,
561
565
"PodFitsResources" ,
562
566
"PodFitsHostPorts" ,
563
- "NoDiskConflict" ,
564
567
"NoVolumeZoneConflict" ,
565
568
"CheckNodeMemoryPressure" ,
566
569
"CheckNodeDiskPressure" ,
@@ -587,6 +590,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
587
590
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
588
591
"FilterPlugin" : {
589
592
{Name : "NodeName" },
593
+ {Name : "VolumeRestrictions" },
590
594
{Name : "TaintToleration" },
591
595
{Name : "VolumeBinding" },
592
596
},
@@ -660,7 +664,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
660
664
"MatchNodeSelector" ,
661
665
"PodFitsResources" ,
662
666
"PodFitsHostPorts" ,
663
- "NoDiskConflict" ,
664
667
"NoVolumeZoneConflict" ,
665
668
"CheckNodeMemoryPressure" ,
666
669
"CheckNodeDiskPressure" ,
@@ -688,6 +691,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
688
691
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
689
692
"FilterPlugin" : {
690
693
{Name : "NodeName" },
694
+ {Name : "VolumeRestrictions" },
691
695
{Name : "TaintToleration" },
692
696
{Name : "VolumeBinding" },
693
697
},
@@ -773,7 +777,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
773
777
"MatchNodeSelector" ,
774
778
"PodFitsResources" ,
775
779
"PodFitsHostPorts" ,
776
- "NoDiskConflict" ,
777
780
"NoVolumeZoneConflict" ,
778
781
"CheckNodeMemoryPressure" ,
779
782
"CheckNodeDiskPressure" ,
@@ -802,6 +805,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
802
805
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
803
806
"FilterPlugin" : {
804
807
{Name : "NodeName" },
808
+ {Name : "VolumeRestrictions" },
805
809
{Name : "TaintToleration" },
806
810
{Name : "VolumeBinding" },
807
811
},
@@ -888,7 +892,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
888
892
"MatchNodeSelector" ,
889
893
"PodFitsResources" ,
890
894
"PodFitsHostPorts" ,
891
- "NoDiskConflict" ,
892
895
"NoVolumeZoneConflict" ,
893
896
"CheckNodeMemoryPressure" ,
894
897
"CheckNodeDiskPressure" ,
@@ -918,6 +921,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
918
921
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
919
922
"FilterPlugin" : {
920
923
{Name : "NodeName" },
924
+ {Name : "VolumeRestrictions" },
921
925
{Name : "TaintToleration" },
922
926
{Name : "VolumeBinding" },
923
927
},
@@ -1003,7 +1007,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1003
1007
"MatchNodeSelector" ,
1004
1008
"PodFitsResources" ,
1005
1009
"PodFitsHostPorts" ,
1006
- "NoDiskConflict" ,
1007
1010
"NoVolumeZoneConflict" ,
1008
1011
"CheckNodeMemoryPressure" ,
1009
1012
"CheckNodeDiskPressure" ,
@@ -1034,6 +1037,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1034
1037
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
1035
1038
"FilterPlugin" : {
1036
1039
{Name : "NodeName" },
1040
+ {Name : "VolumeRestrictions" },
1037
1041
{Name : "TaintToleration" },
1038
1042
{Name : "VolumeBinding" },
1039
1043
},
@@ -1123,7 +1127,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1123
1127
"MatchNodeSelector" ,
1124
1128
"PodFitsResources" ,
1125
1129
"PodFitsHostPorts" ,
1126
- "NoDiskConflict" ,
1127
1130
"NoVolumeZoneConflict" ,
1128
1131
"CheckNodeMemoryPressure" ,
1129
1132
"CheckNodeDiskPressure" ,
@@ -1154,6 +1157,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1154
1157
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
1155
1158
"FilterPlugin" : {
1156
1159
{Name : "NodeName" },
1160
+ {Name : "VolumeRestrictions" },
1157
1161
{Name : "TaintToleration" },
1158
1162
{Name : "VolumeBinding" },
1159
1163
},
@@ -1180,9 +1184,10 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1180
1184
seenPriorities := sets .NewString ()
1181
1185
mandatoryPredicates := sets .NewString ("CheckNodeCondition" )
1182
1186
filterToPredicateMap := map [string ]string {
1183
- "TaintToleration" : "PodToleratesNodeTaints" ,
1184
- "NodeName" : "HostName" ,
1185
- "VolumeBinding" : "CheckVolumeBinding" ,
1187
+ "VolumeRestrictions" : "NoDiskConflict" ,
1188
+ "TaintToleration" : "PodToleratesNodeTaints" ,
1189
+ "NodeName" : "HostName" ,
1190
+ "VolumeBinding" : "CheckVolumeBinding" ,
1186
1191
}
1187
1192
scoreToPriorityMap := map [string ]string {
1188
1193
"TaintToleration" : "TaintTolerationPriority" ,
0 commit comments