From 60f3ebe6b543af336343724b1443ebaa573cd0a7 Mon Sep 17 00:00:00 2001 From: notpad Date: Tue, 25 Feb 2020 18:32:07 +0800 Subject: [PATCH] Remove alpha feature test for EvenPodsSpread --- .../apis/config/testing/compatibility_test.go | 37 +------------------ 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/pkg/scheduler/apis/config/testing/compatibility_test.go b/pkg/scheduler/apis/config/testing/compatibility_test.go index b3662be76c8..86337b47b46 100644 --- a/pkg/scheduler/apis/config/testing/compatibility_test.go +++ b/pkg/scheduler/apis/config/testing/compatibility_test.go @@ -1294,41 +1294,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) { }}, }, { - name: "enable alpha feature EvenPodsSpread", - JSON: `{ - "kind": "Policy", - "apiVersion": "v1", - "predicates": [ - {"name": "EvenPodsSpread"} - ], - "priorities": [ - {"name": "EvenPodsSpreadPriority", "weight": 2} - ] - }`, - featureGates: map[featuregate.Feature]bool{ - features.EvenPodsSpread: true, - }, - wantPlugins: map[string][]config.Plugin{ - "QueueSortPlugin": {{Name: "PrioritySort"}}, - "PreFilterPlugin": { - {Name: "PodTopologySpread"}, - }, - "FilterPlugin": { - {Name: "NodeUnschedulable"}, - {Name: "TaintToleration"}, - {Name: "PodTopologySpread"}, - }, - "PreScorePlugin": { - {Name: "PodTopologySpread"}, - }, - "ScorePlugin": { - {Name: "PodTopologySpread", Weight: 2}, - }, - "BindPlugin": {{Name: "DefaultBinder"}}, - }, - }, - { - name: "enable alpha feature ResourceLimitsPriorityFunction", + name: "enable alpha feature ResourceLimitsPriorityFunction and disable beta feature EvenPodsSpread", JSON: `{ "kind": "Policy", "apiVersion": "v1", @@ -1338,6 +1304,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) { ] }`, featureGates: map[featuregate.Feature]bool{ + features.EvenPodsSpread: false, features.ResourceLimitsPriorityFunction: true, }, wantPlugins: map[string][]config.Plugin{