Commit 2e516943 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50669 from jiulongzaitian/myfeature

Automatic merge from submit-queue (batch tested with PRs 51224, 51191, 51158, 50669, 51222) Modify the initialization of results in generic_scheduler.go Signed-off-by: 's avatarzhangjie <zhangjie0619@yeah.net> **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 4a94363c c87d4276
...@@ -315,10 +315,8 @@ func PrioritizeNodes( ...@@ -315,10 +315,8 @@ func PrioritizeNodes(
errs = append(errs, err) errs = append(errs, err)
} }
results := make([]schedulerapi.HostPriorityList, 0, len(priorityConfigs)) results := make([]schedulerapi.HostPriorityList, len(priorityConfigs), len(priorityConfigs))
for range priorityConfigs {
results = append(results, nil)
}
for i, priorityConfig := range priorityConfigs { for i, priorityConfig := range priorityConfigs {
if priorityConfig.Function != nil { if priorityConfig.Function != nil {
// DEPRECATED // DEPRECATED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment