linkerd2/controller
Eliza Weisman cda05aa34c
Add inbound destination label hydration to Tap server (#1442)
Based on @adleong's suggestion in
https://github.com/linkerd/linkerd2/pull/1434#pullrequestreview-145428857,
this branch adds label hydration from destination IPs to the Tap server.
This works the same as the label hydration for destination IPs added in
#1434. However, it is only applied to the destination fields of events
recorded by proxies in the inbound direction, since outbound
destinations are already labeled with metadata provided by the
Destination service.

This means that when a user taps inbound traffic, the CLI will show k8s
metadata labels for the destination peer (if it's available). This can
be useful especially when tapping several pods at once, as it makes it
easier to distinguish what pod received a request.

This branch also refactors how the label hydration is performed,
primarily to make adding it to the destination field less repetitive.
Also, the `hydrateIPLabels` function now mutates the label map in the
`TapEvent`, rather than returning a new map of labels, so that the case
where no pod was found doesn't require an additional allocation of an
empty map.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-08-13 13:46:33 -07:00
..
api Add source metadata to Tap server tap events (#1434) 2018-08-13 13:25:14 -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 Add inbound destination label hydration to Tap server (#1442) 2018-08-13 13:46:33 -07:00
Dockerfile Use stable version for linkerd2-proxy-api dep (#1400) 2018-08-03 11:59:42 -07:00