mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
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: zhangjie <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 ```
This commit is contained in:
commit
2e516943dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user