linkerd2/cli/cmd
Eliza Weisman b8434d60d4
Add resource metadata to Tap CLI output (#1437)
Closes #1170.

This branch adds a `-o wide` (or `--output wide`) flag to the Tap CLI.
Passing this flag adds `src_res` and `dst_res` elements to the Tap
output, as described in #1170. These use the metadata labels in the tap
event to describe what Kubernetes resource the source and destination
peers belong to, based on what resource type is being tapped, and fall
back to pods if either peer is not a member of the specified resource
type.

In addition, when the resource type is not `namespace`, `src_ns` and
`dst_ns` elements are added, which show what namespaces the the source
and destination peers are in. For peers which are not in the Kubernetes
cluster, none of these labels are displayed.

The source metadata added in #1434 is used to populate the `src_res` and
`src_ns` fields.

Also, this branch includes some refactoring to how tap output is
formatted.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-08-20 14:25:26 -07:00
..
testdata Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
check.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
check_test.go Migrate build infrastructure to linkerd2 (#1298) 2018-07-09 15:38:38 -07:00
completion.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
completion_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
dashboard.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
get.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
get_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
inject.go Increase outbound router capacity for Prometheus pod's proxy (#1358) 2018-08-02 16:44:11 -07:00
inject_test.go Update inject cmd to read from folder (#1377) 2018-08-01 17:12:00 -07:00
install.go Rename mailing lists, remove all remaining conduit references (#1416) 2018-08-07 17:00:55 -07:00
install_test.go Add TLS support to `conduit inject`. (#1220) 2018-06-27 16:04:07 -10:00
root.go [RFC] linkerd top (#1435) 2018-08-15 18:10:23 -07:00
stat.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
stat_test.go Add additional validation for stat command-line arguments (#1415) 2018-08-08 15:35:47 -07:00
tap.go Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
tap_test.go Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
test_helper.go Add Grafana to conduit install (#444) 2018-02-28 11:36:21 -08:00
top.go [RFC] linkerd top (#1435) 2018-08-15 18:10:23 -07:00
version.go Better CLI error messages when control plane is unavailable (#1428) 2018-08-09 15:40:41 -07:00
version_test.go Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00