mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Added field selector for listing pods.
This commit is contained in:
@@ -201,7 +201,7 @@ func FilterActivePods(pods []api.Pod) []*api.Pod {
|
||||
|
||||
func (rm *ReplicationManager) syncReplicationController(controller api.ReplicationController) error {
|
||||
s := labels.Set(controller.Spec.Selector).AsSelector()
|
||||
podList, err := rm.kubeClient.Pods(controller.Namespace).List(s)
|
||||
podList, err := rm.kubeClient.Pods(controller.Namespace).List(s, fields.Everything())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user