mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Rename ListPods methods to List.
For greater similarity to pkg/client. Does not cover registry's ListPods. Fix an example in a comment.
This commit is contained in:
@@ -28,7 +28,7 @@ import (
|
||||
// may not provide optimal spreading for the members of that Service.
|
||||
// TODO: consider if we want to include Service label sets in the scheduling priority.
|
||||
func CalculateSpreadPriority(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) {
|
||||
pods, err := podLister.ListPods(labels.SelectorFromSet(pod.Labels))
|
||||
pods, err := podLister.List(labels.SelectorFromSet(pod.Labels))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user