Skip to content

Commit 44cccbd

Browse files
authored
Merge pull request kubernetes#88466 from notpad/feature/clean
Remove alpha feature test for EvenPodsSpread
2 parents 86c8a23 + 60f3ebe commit 44cccbd

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
@@ -1296,41 +1296,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
12961296
}},
12971297
},
12981298
{
1299-
name: "enable alpha feature EvenPodsSpread",
1300-
JSON: `{
1301-
"kind": "Policy",
1302-
"apiVersion": "v1",
1303-
"predicates": [
1304-
{"name": "EvenPodsSpread"}
1305-
],
1306-
"priorities": [
1307-
{"name": "EvenPodsSpreadPriority", "weight": 2}
1308-
]
1309-
}`,
1310-
featureGates: map[featuregate.Feature]bool{
1311-
features.EvenPodsSpread: true,
1312-
},
1313-
wantPlugins: map[string][]config.Plugin{
1314-
"QueueSortPlugin": {{Name: "PrioritySort"}},
1315-
"PreFilterPlugin": {
1316-
{Name: "PodTopologySpread"},
1317-
},
1318-
"FilterPlugin": {
1319-
{Name: "NodeUnschedulable"},
1320-
{Name: "TaintToleration"},
1321-
{Name: "PodTopologySpread"},
1322-
},
1323-
"PreScorePlugin": {
1324-
{Name: "PodTopologySpread"},
1325-
},
1326-
"ScorePlugin": {
1327-
{Name: "PodTopologySpread", Weight: 2},
1328-
},
1329-
"BindPlugin": {{Name: "DefaultBinder"}},
1330-
},
1331-
},
1332-
{
1333-
name: "enable alpha feature ResourceLimitsPriorityFunction",
1299+
name: "enable alpha feature ResourceLimitsPriorityFunction and disable beta feature EvenPodsSpread",
13341300
JSON: `{
13351301
"kind": "Policy",
13361302
"apiVersion": "v1",
@@ -1340,6 +1306,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
13401306
]
13411307
}`,
13421308
featureGates: map[featuregate.Feature]bool{
1309+
features.EvenPodsSpread: false,
13431310
features.ResourceLimitsPriorityFunction: true,
13441311
},
13451312
wantPlugins: map[string][]config.Plugin{

0 commit comments

Comments
 (0)