diff --git a/listers/core/v1/replicationcontroller_expansion.go b/listers/core/v1/replicationcontroller_expansion.go index 6a639868..c0d66745 100644 --- a/listers/core/v1/replicationcontroller_expansion.go +++ b/listers/core/v1/replicationcontroller_expansion.go @@ -33,7 +33,9 @@ type ReplicationControllerListerExpansion interface { // ReplicationControllerNamespaeLister. type ReplicationControllerNamespaceListerExpansion interface{} -// GetPodControllers returns a list of replication controllers managing a pod. Returns an error only if no matching controllers are found. +// GetPodControllers returns a list of ReplicationControllers that potentially match a pod. +// Only the one specified in the Pod's ControllerRef will actually manage it. +// Returns an error only if no matching ReplicationControllers are found. func (s *replicationControllerLister) GetPodControllers(pod *v1.Pod) ([]*v1.ReplicationController, error) { if len(pod.Labels) == 0 { return nil, fmt.Errorf("no controllers found for pod %v because it has no labels", pod.Name) diff --git a/listers/extensions/v1beta1/replicaset_expansion.go b/listers/extensions/v1beta1/replicaset_expansion.go index 8b92a328..8b0c5555 100644 --- a/listers/extensions/v1beta1/replicaset_expansion.go +++ b/listers/extensions/v1beta1/replicaset_expansion.go @@ -35,7 +35,9 @@ type ReplicaSetListerExpansion interface { // ReplicaSetNamespaeLister. type ReplicaSetNamespaceListerExpansion interface{} -// GetPodReplicaSets returns a list of ReplicaSets managing a pod. Returns an error only if no matching ReplicaSets are found. +// GetPodReplicaSets returns a list of ReplicaSets that potentially match a pod. +// Only the one specified in the Pod's ControllerRef will actually manage it. +// Returns an error only if no matching ReplicaSets are found. func (s *replicaSetLister) GetPodReplicaSets(pod *v1.Pod) ([]*extensions.ReplicaSet, error) { if len(pod.Labels) == 0 { return nil, fmt.Errorf("no ReplicaSets found for pod %v because it has no labels", pod.Name)