linkerd2/controller
Risha Mars 416381cdfd
Fix bug where GetPodsFor(pod) was returning all pods in a namespace (#900)
* Fix bug where GetPodsFor(pod) was returning all pods in a namespace

Problem
In lister.GetPodsFor, when the input object was a pod, we would return all the pods in the namespace. I would expect GetPodsFor(pod) to return only one pod - the pod itself.

Cause
The cause of this is that when the object type was pod we were setting the selector to selector = labels.Everything() which gets all the pods in the namespace.

Fix
Special case GetPodsFor(pod) to return the pod itself, rather than looking up pods via labels.
2018-05-08 13:52:49 -07:00
..
api Modify the Stat endpoint to also return the number of failed conduit pods (#895) 2018-05-08 10:35:21 -07:00
cmd Deprecate Tap, rename TapByResource to Tap (#844) 2018-04-25 12:24:46 -07:00
destination Remove special support for ExternalName services (#764) 2018-04-25 11:53:33 -10:00
gen Modify the Stat endpoint to also return the number of failed conduit pods (#895) 2018-05-08 10:35:21 -07:00
k8s Fix bug where GetPodsFor(pod) was returning all pods in a namespace (#900) 2018-05-08 13:52:49 -07:00
script Modify the Stat endpoint to also return the number of failed conduit pods (#895) 2018-05-08 10:35:21 -07:00
tap Modify the Stat endpoint to also return the number of failed conduit pods (#895) 2018-05-08 10:35:21 -07:00
util Reuse code for metrics serving in controller (#585) 2018-03-19 10:33:25 -07:00
Dockerfile Remove special support for ExternalName services (#764) 2018-04-25 11:53:33 -10:00