mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Remove inner loop for finding MinReclaim in ParseThresholdConfig
This commit is contained in:
parent
5f6cd471dc
commit
f7d9e037d9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user