Merge pull request #78673 from tedyu/threshold-min-reclaim

Remove inner loop for finding MinReclaim in ParseThresholdConfig
This commit is contained in:
Kubernetes Prow Robot 2019-06-14 13:27:02 -07:00 committed by GitHub
commit 145232c1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,11 +139,8 @@ func ParseThresholdConfig(allocatableConfig []string, evictionHard, evictionSoft
} }
results = append(results, softThresholds...) results = append(results, softThresholds...)
for i := range results { for i := range results {
for signal, minReclaim := range minReclaims { if minReclaim, ok := minReclaims[results[i].Signal]; ok {
if results[i].Signal == signal { results[i].MinReclaim = &minReclaim
results[i].MinReclaim = &minReclaim
break
}
} }
} }
for _, key := range allocatableConfig { for _, key := range allocatableConfig {