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