mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Remove inner loop for finding MinReclaim in ParseThresholdConfig
This commit is contained in:
@@ -128,11 +128,8 @@ func ParseThresholdConfig(allocatableConfig []string, evictionHard, evictionSoft
|
||||
}
|
||||
results = append(results, softThresholds...)
|
||||
for i := range results {
|
||||
for signal, minReclaim := range minReclaims {
|
||||
if results[i].Signal == signal {
|
||||
results[i].MinReclaim = &minReclaim
|
||||
break
|
||||
}
|
||||
if minReclaim, ok := minReclaims[results[i].Signal]; ok {
|
||||
results[i].MinReclaim = &minReclaim
|
||||
}
|
||||
}
|
||||
for _, key := range allocatableConfig {
|
||||
|
Reference in New Issue
Block a user