Skip to content

Commit 60f3ebe

Browse files
committed
Remove alpha feature test for EvenPodsSpread
1 parent ac25069 commit 60f3ebe

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

pkg/scheduler/apis/config/testing/compatibility_test.go

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,41 +1294,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
12941294
}},
12951295
},
12961296
{
1297-
name: "enable alpha feature EvenPodsSpread",
1298-
JSON: `{
1299-
"kind": "Policy",
1300-
"apiVersion": "v1",
1301-
"predicates": [
1302-
{"name": "EvenPodsSpread"}
1303-
],
1304-
"priorities": [
1305-
{"name": "EvenPodsSpreadPriority", "weight": 2}
1306-
]
1307-
}`,
1308-
featureGates: map[featuregate.Feature]bool{
1309-
features.EvenPodsSpread: true,
1310-
},
1311-
wantPlugins: map[string][]config.Plugin{
1312-
"QueueSortPlugin": {{Name: "PrioritySort"}},
1313-
"PreFilterPlugin": {
1314-
{Name: "PodTopologySpread"},
1315-
},
1316-
"FilterPlugin": {
1317-
{Name: "NodeUnschedulable"},
1318-
{Name: "TaintToleration"},
1319-
{Name: "PodTopologySpread"},
1320-
},
1321-
"PreScorePlugin": {
1322-
{Name: "PodTopologySpread"},
1323-
},
1324-
"ScorePlugin": {
1325-
{Name: "PodTopologySpread", Weight: 2},
1326-
},
1327-
"BindPlugin": {{Name: "DefaultBinder"}},
1328-
},
1329-
},
1330-
{
1331-
name: "enable alpha feature ResourceLimitsPriorityFunction",
1297+
name: "enable alpha feature ResourceLimitsPriorityFunction and disable beta feature EvenPodsSpread",
13321298
JSON: `{
13331299
"kind": "Policy",
13341300
"apiVersion": "v1",
@@ -1338,6 +1304,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
13381304
]
13391305
}`,
13401306
featureGates: map[featuregate.Feature]bool{
1307+
features.EvenPodsSpread: false,
13411308
features.ResourceLimitsPriorityFunction: true,
13421309
},
13431310
wantPlugins: map[string][]config.Plugin{

0 commit comments

Comments
 (0)