mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #78673 from tedyu/threshold-min-reclaim
Remove inner loop for finding MinReclaim in ParseThresholdConfig
This commit is contained in:
commit
145232c1a0
@ -139,11 +139,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