linkerd2/controller
Eliza Weisman efabd90ff7
Fix missing ns/svc labels in metadata hydrated by Tap server (#1496)
Fixes #1493.

When the tap server hydrates metadata for the source or destination peer
of a Tap event from the peer's IP address, it doesn't currently add a
namespace label. However, destinations labeled by the proxy do have such
a label.

This is because the tap server currently gets the hydrated labels from
the `GetPodLabels` function, which is also used by the Destination
service for labeling the individual endpoints in a `WeightedAddrSet`
response. However, the Destination service also adds some labels to all
the endpoints in the set, including the namespace and service, so
`GetPodLabels` doesn't return these labels. However, when the tap server
uses that function, it does not add the service or namespace labels.

This branch fixes this issue by adding those labels to the Tap event 
after calling `GetPodLabels`. In addition, it fixes a missing space 
between the `src/dst_res` and `src/dst_ns` labels in Tap CLI output
with the `-o wide` flag set. This issue was introduced during the 
review of #1437, but was missed at the time because the namespace label
wasn't being set correctly.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-08-20 18:09:34 -07:00
..
api Fix missing ns/svc labels in metadata hydrated by Tap server (#1496) 2018-08-20 18:09:34 -07:00
ca Update prometheus to only scrape proxies in the same mesh (#1402) 2018-08-06 12:05:55 -07:00
cmd Add source metadata to Tap server tap events (#1434) 2018-08-13 13:25:14 -07:00
destination Fix Destination returning no endpoints for single unnamed container port (#1420) 2018-08-08 13:01:53 -07:00
gen Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
k8s Update prometheus labels to match k8s resource names (#1355) 2018-07-23 15:45:05 -07:00
script/destination-client add H2 protocol to destination addrs if managed by linkerd (#1380) 2018-08-03 10:14:30 -07:00
tap Fix missing ns/svc labels in metadata hydrated by Tap server (#1496) 2018-08-20 18:09:34 -07:00
Dockerfile Upgrade to dep 0.5.0, go 1.10.3 (#1479) 2018-08-17 16:04:50 -07:00