linkerd2/controller/k8s
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
..
clientset.go Upgrade k8s.io/client-go to v6.0.0 (#122) 2018-01-11 10:22:37 -08:00
endpoints.go Remove special support for ExternalName services (#764) 2018-04-25 11:53:33 -10:00
lister.go Fix bug where GetPodsFor(pod) was returning all pods in a namespace (#900) 2018-05-08 13:52:49 -07:00
lister_test.go Fix bug where GetPodsFor(pod) was returning all pods in a namespace (#900) 2018-05-08 13:52:49 -07:00
pods.go Implement TapByResource in Tap Service (#827) 2018-04-23 16:13:26 -07:00
test_helper.go Destination service returns "Running" pod labels (#781) 2018-04-17 14:42:54 -07:00
watcher.go Retry k8s watch endpoints on error (#510) 2018-03-07 13:40:43 -08:00
watcher_test.go Misc cleanup following the telemetry rewrite (#771) 2018-04-16 15:51:07 -07:00