mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Remove alpha feature test for EvenPodsSpread
This commit is contained in:
parent
ac25069a05
commit
60f3ebe6b5
@ -1294,41 +1294,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
|
|||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "enable alpha feature EvenPodsSpread",
|
name: "enable alpha feature ResourceLimitsPriorityFunction and disable beta 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",
|
|
||||||
JSON: `{
|
JSON: `{
|
||||||
"kind": "Policy",
|
"kind": "Policy",
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
@ -1338,6 +1304,7 @@ func TestCompatibility_v1_Scheduler(t *testing.T) {
|
|||||||
]
|
]
|
||||||
}`,
|
}`,
|
||||||
featureGates: map[featuregate.Feature]bool{
|
featureGates: map[featuregate.Feature]bool{
|
||||||
|
features.EvenPodsSpread: false,
|
||||||
features.ResourceLimitsPriorityFunction: true,
|
features.ResourceLimitsPriorityFunction: true,
|
||||||
},
|
},
|
||||||
wantPlugins: map[string][]config.Plugin{
|
wantPlugins: map[string][]config.Plugin{
|
||||||
|
Loading…
Reference in New Issue
Block a user