@@ -66,7 +66,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
66
66
]
67
67
}` ,
68
68
wantPredicates : sets .NewString (
69
- "PodFitsResources" ,
70
69
"PodFitsPorts" ,
71
70
"TestServiceAffinity" ,
72
71
"TestLabelsPresence" ,
@@ -80,6 +79,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
80
79
wantPlugins : map [string ][]kubeschedulerconfig.Plugin {
81
80
"FilterPlugin" : {
82
81
{Name : "NodeAffinity" },
82
+ {Name : "NodeResources" },
83
83
{Name : "VolumeRestrictions" },
84
84
},
85
85
},
@@ -110,7 +110,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
110
110
}` ,
111
111
wantPredicates : sets .NewString (
112
112
"PodFitsHostPorts" ,
113
- "PodFitsResources" ,
114
113
"TestServiceAffinity" ,
115
114
"TestLabelsPresence" ,
116
115
),
@@ -126,6 +125,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
126
125
"FilterPlugin" : {
127
126
{Name : "NodeName" },
128
127
{Name : "NodeAffinity" },
128
+ {Name : "NodeResources" },
129
129
{Name : "VolumeRestrictions" },
130
130
},
131
131
},
@@ -161,7 +161,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
161
161
]
162
162
}` ,
163
163
wantPredicates : sets .NewString (
164
- "PodFitsResources" ,
165
164
"PodFitsHostPorts" ,
166
165
"NoVolumeZoneConflict" ,
167
166
"MaxEBSVolumeCount" ,
@@ -184,6 +183,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
184
183
"FilterPlugin" : {
185
184
{Name : "NodeName" },
186
185
{Name : "NodeAffinity" },
186
+ {Name : "NodeResources" },
187
187
{Name : "VolumeRestrictions" },
188
188
},
189
189
},
@@ -223,7 +223,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
223
223
]
224
224
}` ,
225
225
wantPredicates : sets .NewString (
226
- "PodFitsResources" ,
227
226
"PodFitsHostPorts" ,
228
227
"NoVolumeZoneConflict" ,
229
228
"CheckNodeMemoryPressure" ,
@@ -248,6 +247,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
248
247
"FilterPlugin" : {
249
248
{Name : "NodeName" },
250
249
{Name : "NodeAffinity" },
250
+ {Name : "NodeResources" },
251
251
{Name : "VolumeRestrictions" },
252
252
{Name : "TaintToleration" },
253
253
},
@@ -292,7 +292,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
292
292
]
293
293
}` ,
294
294
wantPredicates : sets .NewString (
295
- "PodFitsResources" ,
296
295
"PodFitsHostPorts" ,
297
296
"NoVolumeZoneConflict" ,
298
297
"CheckNodeMemoryPressure" ,
@@ -320,6 +319,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
320
319
"FilterPlugin" : {
321
320
{Name : "NodeName" },
322
321
{Name : "NodeAffinity" },
322
+ {Name : "NodeResources" },
323
323
{Name : "VolumeRestrictions" },
324
324
{Name : "TaintToleration" },
325
325
},
@@ -373,7 +373,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
373
373
}]
374
374
}` ,
375
375
wantPredicates : sets .NewString (
376
- "PodFitsResources" ,
377
376
"PodFitsHostPorts" ,
378
377
"NoVolumeZoneConflict" ,
379
378
"CheckNodeMemoryPressure" ,
@@ -401,6 +400,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
401
400
"FilterPlugin" : {
402
401
{Name : "NodeName" },
403
402
{Name : "NodeAffinity" },
403
+ {Name : "NodeResources" },
404
404
{Name : "VolumeRestrictions" },
405
405
{Name : "TaintToleration" },
406
406
},
@@ -466,7 +466,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
466
466
}]
467
467
}` ,
468
468
wantPredicates : sets .NewString (
469
- "PodFitsResources" ,
470
469
"PodFitsHostPorts" ,
471
470
"NoVolumeZoneConflict" ,
472
471
"CheckNodeMemoryPressure" ,
@@ -495,6 +494,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
495
494
"FilterPlugin" : {
496
495
{Name : "NodeName" },
497
496
{Name : "NodeAffinity" },
497
+ {Name : "NodeResources" },
498
498
{Name : "VolumeRestrictions" },
499
499
{Name : "TaintToleration" },
500
500
},
@@ -561,7 +561,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
561
561
}]
562
562
}` ,
563
563
wantPredicates : sets .NewString (
564
- "PodFitsResources" ,
565
564
"PodFitsHostPorts" ,
566
565
"NoVolumeZoneConflict" ,
567
566
"CheckNodeMemoryPressure" ,
@@ -590,6 +589,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
590
589
"FilterPlugin" : {
591
590
{Name : "NodeName" },
592
591
{Name : "NodeAffinity" },
592
+ {Name : "NodeResources" },
593
593
{Name : "VolumeRestrictions" },
594
594
{Name : "TaintToleration" },
595
595
{Name : "VolumeBinding" },
@@ -661,7 +661,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
661
661
}]
662
662
}` ,
663
663
wantPredicates : sets .NewString (
664
- "PodFitsResources" ,
665
664
"PodFitsHostPorts" ,
666
665
"NoVolumeZoneConflict" ,
667
666
"CheckNodeMemoryPressure" ,
@@ -691,6 +690,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
691
690
"FilterPlugin" : {
692
691
{Name : "NodeName" },
693
692
{Name : "NodeAffinity" },
693
+ {Name : "NodeResources" },
694
694
{Name : "VolumeRestrictions" },
695
695
{Name : "TaintToleration" },
696
696
{Name : "VolumeBinding" },
@@ -774,7 +774,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
774
774
}]
775
775
}` ,
776
776
wantPredicates : sets .NewString (
777
- "PodFitsResources" ,
778
777
"PodFitsHostPorts" ,
779
778
"NoVolumeZoneConflict" ,
780
779
"CheckNodeMemoryPressure" ,
@@ -805,6 +804,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
805
804
"FilterPlugin" : {
806
805
{Name : "NodeName" },
807
806
{Name : "NodeAffinity" },
807
+ {Name : "NodeResources" },
808
808
{Name : "VolumeRestrictions" },
809
809
{Name : "TaintToleration" },
810
810
{Name : "VolumeBinding" },
@@ -889,7 +889,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
889
889
}]
890
890
}` ,
891
891
wantPredicates : sets .NewString (
892
- "PodFitsResources" ,
893
892
"PodFitsHostPorts" ,
894
893
"NoVolumeZoneConflict" ,
895
894
"CheckNodeMemoryPressure" ,
@@ -921,6 +920,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
921
920
"FilterPlugin" : {
922
921
{Name : "NodeName" },
923
922
{Name : "NodeAffinity" },
923
+ {Name : "NodeResources" },
924
924
{Name : "VolumeRestrictions" },
925
925
{Name : "TaintToleration" },
926
926
{Name : "VolumeBinding" },
@@ -1004,7 +1004,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1004
1004
}]
1005
1005
}` ,
1006
1006
wantPredicates : sets .NewString (
1007
- "PodFitsResources" ,
1008
1007
"PodFitsHostPorts" ,
1009
1008
"NoVolumeZoneConflict" ,
1010
1009
"CheckNodeMemoryPressure" ,
@@ -1037,6 +1036,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1037
1036
"FilterPlugin" : {
1038
1037
{Name : "NodeName" },
1039
1038
{Name : "NodeAffinity" },
1039
+ {Name : "NodeResources" },
1040
1040
{Name : "VolumeRestrictions" },
1041
1041
{Name : "TaintToleration" },
1042
1042
{Name : "VolumeBinding" },
@@ -1124,7 +1124,6 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1124
1124
}]
1125
1125
}` ,
1126
1126
wantPredicates : sets .NewString (
1127
- "PodFitsResources" ,
1128
1127
"PodFitsHostPorts" ,
1129
1128
"NoVolumeZoneConflict" ,
1130
1129
"CheckNodeMemoryPressure" ,
@@ -1157,6 +1156,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1157
1156
"FilterPlugin" : {
1158
1157
{Name : "NodeName" },
1159
1158
{Name : "NodeAffinity" },
1159
+ {Name : "NodeResources" },
1160
1160
{Name : "VolumeRestrictions" },
1161
1161
{Name : "TaintToleration" },
1162
1162
{Name : "VolumeBinding" },
@@ -1186,6 +1186,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
1186
1186
filterToPredicateMap := map [string ]string {
1187
1187
"TaintToleration" : "PodToleratesNodeTaints" ,
1188
1188
"NodeName" : "HostName" ,
1189
+ "NodeResources" : "PodFitsResources" ,
1189
1190
"NodeAffinity" : "MatchNodeSelector" ,
1190
1191
"VolumeBinding" : "CheckVolumeBinding" ,
1191
1192
"VolumeRestrictions" : "NoDiskConflict" ,
0 commit comments