linkerd2/cli/cmd
Alex Leong 40b921508f
Inject LINKERD2_PROXY_DESTINATION_GET_NETWORKS proxy variable (#4300)
Fixes #3807

By setting the LINKERD2_PROXY_DESTINATION_GET_NETWORKS environment variable, we configure the Linkerd proxy to do destination lookups for authorities which are IP addresses in the private network range.  This allows us to get destination metadata including identity for HTTP requests which target an IP address in the cluster, Prometheus metrics scrape requests, for example.

This change allowed us to update the "direct edges" test which ensures that the edges command produces correct output for traffic which is addressed directly to a pod IP.

We also re-enabled the "linkerd stat" integration tests which had been disabled while the destination service did not yet support these types of IP queries.

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-04-30 11:22:24 -07:00
..
testdata Inject LINKERD2_PROXY_DESTINATION_GET_NETWORKS proxy variable (#4300) 2020-04-30 11:22:24 -07:00
alpha.go Add alpha clients command (#4157) 2020-03-12 13:45:34 -07:00
alpha_clients.go Add alpha clients command (#4157) 2020-03-12 13:45:34 -07:00
alpha_stat.go Upgrade to client-go 0.17.4 and smi-sdk-go 0.3.0 (#4221) 2020-04-01 10:07:23 -07:00
check.go Add helm upgrade integration test (#3976) 2020-02-04 08:27:46 +02:00
check_test.go Output check result as json (#2666) 2019-05-20 09:04:28 -07:00
cluster.go Make export-service non side-effecting (#4307) 2020-04-30 17:11:55 +03:00
completion.go CLI help updates: non-experimental auto-inject; unhide install-cni (#2319) 2019-02-18 15:32:46 -08:00
completion_test.go Bump proxy-init to 1.2.0 (#3397) 2019-09-09 09:06:14 -07:00
dashboard.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
diagnostics.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
doc.go Fix issue for debug containers when using custom Docker registry (#3873) 2020-01-17 10:18:03 -08:00
edges.go Add CronJobs and ReplicaSets to dashboard and CLI (#3687) 2019-12-11 10:02:37 -08:00
edges_test.go Add unit test for edges API endpoint (#3306) 2019-08-23 09:28:02 -07:00
endpoints.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoints_test.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
get.go Introduce -A as a shorthand for --all-namespaces (#3125) 2019-07-24 07:50:22 -07:00
get_test.go Fix most golint issues that are not comment related (#1982) 2018-12-20 10:37:47 -08:00
inject.go Update inject to handle `automountServiceAccountToken: false` (#4145) 2020-04-01 09:39:49 -05:00
inject_test.go charts: Using downwardAPI to mount labels to the proxy container (#4199) 2020-04-22 10:33:51 -05:00
inject_util.go Fix inject with path and add tests (#3038) 2019-07-05 09:26:25 -05:00
install-cni-plugin.go Remove experimental from CNI (#4038) 2020-02-11 20:10:55 +02:00
install-cni-plugin_test.go Fix CNI config parsing (#3953) 2020-01-23 09:55:04 -08:00
install-service-mirror.go Multicluster gateway and remote setup command (#4265) 2020-04-29 20:33:23 +03:00
install-sp.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
install-sp_test.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install.go Support Multi-stage install with Add-On's (#4271) 2020-04-23 14:40:58 -05:00
install_addon_test.go Tracing Add-on For Linkerd (#3955) 2020-02-26 10:15:04 -08:00
install_cni_helm_test.go Improve cni resources labels (#4032) 2020-02-11 12:10:08 +02:00
install_helm_test.go refacor TestRenderHelm to not need addOn list (#4297) 2020-04-29 23:44:30 +05:30
install_test.go Support Multi-stage install with Add-On's (#4271) 2020-04-23 14:40:58 -05:00
logs.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
logs_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
main_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
metrics.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
metrics_diagnostics_util.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
metrics_diagnostics_util_test.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
profile.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
profile_test.go Allow setting custom cluster domain in service profiles (#3148) 2019-08-07 09:49:54 -07:00
public_api.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
range_slice.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
range_slice_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
root.go Some `linkerd stat` test failures were being hidden (#4272) 2020-04-21 14:52:09 -05:00
routes.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
routes_test.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
stat.go Inject LINKERD2_PROXY_DESTINATION_GET_NETWORKS proxy variable (#4300) 2020-04-30 11:22:24 -07:00
stat_test.go Add validation to ensure stat time window is at least 15s (#3720) 2019-12-04 08:12:01 +02:00
tap.go Add kubectl-style label selectors (#4120) 2020-03-20 10:45:06 -05:00
tap_test.go Add TapEvent headers and trailers to the tap protobuf (#3410) 2019-09-29 09:54:37 -07:00
top.go Add kubectl-style label selectors (#4120) 2020-03-20 10:45:06 -05:00
uninject.go Upgrade golangci-lint to v1.23.8 (#4181) 2020-03-18 09:13:19 -05:00
uninject_test.go Remove envoy, contour restrictions (#4092) 2020-03-02 09:18:51 -05:00
uninstall.go `linkerd uninstall` errors when attempting to delete PSP (#4234) 2020-04-07 11:01:11 -05:00
uninstall_test.go Add uninstall cmd functionality to cli (#3622) (#4200) 2020-04-02 12:35:39 -05:00
upgrade.go Refactor AddOn Installation (#4247) 2020-04-16 15:24:55 -05:00
upgrade_test.go Support Multi-stage install with Add-On's (#4271) 2020-04-23 14:40:58 -05:00
version.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00
version_test.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00