Skip to content

Commit

Permalink
Merge pull request kubernetes#105278 from ingvagabund/automated-cherr…
Browse files Browse the repository at this point in the history
…y-pick-of-#105205-upstream-release-1.21

Automated cherry pick of kubernetes#105205: e2e scheduling priorities: do not reference control loop
  • Loading branch information
k8s-ci-robot authored Oct 6, 2021
2 parents f1682c6 + da667a9 commit 95d1479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/scheduling/priorities.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,9 @@ func podListForEachNode(cs clientset.Interface) map[string][]*v1.Pod {
if err != nil {
framework.Failf("Expect error of invalid, got : %v", err)
}
for _, pod := range allPods.Items {
for i, pod := range allPods.Items {
nodeName := pod.Spec.NodeName
nodeNameToPodList[nodeName] = append(nodeNameToPodList[nodeName], &pod)
nodeNameToPodList[nodeName] = append(nodeNameToPodList[nodeName], &allPods.Items[i])
}
return nodeNameToPodList
}
Expand Down

0 comments on commit 95d1479

Please sign in to comment.