mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +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:
@@ -52,7 +52,7 @@ func newPods(c *Client, namespace string) *pods {
|
||||
}
|
||||
}
|
||||
|
||||
// ListPods takes a selector, and returns the list of pods that match that selector.
|
||||
// List takes a selector, and returns the list of pods that match that selector.
|
||||
func (c *pods) List(selector labels.Selector) (result *api.PodList, err error) {
|
||||
result = &api.PodList{}
|
||||
err = c.r.Get().Namespace(c.ns).Resource("pods").SelectorParam("labels", selector).Do().Into(result)
|
||||
|
Reference in New Issue
Block a user