mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #88466 from notpad/feature/clean
Remove alpha feature test for EvenPodsSpread
This commit is contained in:
commit
44cccbde50
@ -1296,41 +1296,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",
|
||||
@ -1340,6 +1306,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
|
||||
]
|
||||
}`,
|
||||
featureGates: map[featuregate.Feature]bool{
|
||||
features.EvenPodsSpread: false,
|
||||
features.ResourceLimitsPriorityFunction: true,
|
||||
},
|
||||
wantPlugins: map[string][]config.Plugin{
|
||||
|
Loading…
Reference in New Issue
Block a user