mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #128084 from macsko/fix_panic_when_defining_featuregates_only_on_workload_level_scheduler_perf
Fix panic when setting feature gates only on workload level in scheduler_perf
This commit is contained in:
commit
558c0b6eaa
@ -1053,6 +1053,9 @@ func setupTestCase(t testing.TB, tc *testCase, featureGates map[featuregate.Feat
|
|||||||
}
|
}
|
||||||
|
|
||||||
func featureGatesMerge(src map[featuregate.Feature]bool, overrides map[featuregate.Feature]bool) map[featuregate.Feature]bool {
|
func featureGatesMerge(src map[featuregate.Feature]bool, overrides map[featuregate.Feature]bool) map[featuregate.Feature]bool {
|
||||||
|
if len(src) == 0 {
|
||||||
|
return maps.Clone(overrides)
|
||||||
|
}
|
||||||
result := maps.Clone(src)
|
result := maps.Clone(src)
|
||||||
for feature, enabled := range overrides {
|
for feature, enabled := range overrides {
|
||||||
result[feature] = enabled
|
result[feature] = enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user