linkerd2/testutil
Alex Leong cdc57d1af0
Use linkerd-jaeger extension for control plane tracing (#5299)
Now that tracing has been split out of the main control plane and into the linkerd-jaeger extension, we remove references to tracing from the main control plane including:

* removing the tracing components from the main control plane chart
* removing the tracing injection logic from the main proxy injector and inject CLI (these will be added back into the new injector in the linkerd-jaeger extension)
* removing tracing related checks (these will be added back into `linkerd jaeger check`)
* removing related tests

We also update the `--control-plane-tracing` flag to configure the control plane components to send traces to the linkerd-jaeger extension.  To make sure this works even when the linkerd-jaeger extension is installed in a non-default namespace, we also add a `--control-plane-tracing-namespace` flag which can be used to change the namespace that the control plane components send traces to.

Note that for now, only the control plane components send traces; the proxies in the control plane do not.  This is because the linkerd-jaeger injector is not yet available.  However, this change adds the appropriate namespace annotations to the control plane namespace to configure the proxies to send traces to the linkerd-jaeger extension once the linkerd-jaeger injector is available.

I tested this by doing the following:

1. bin/linkerd install | kubectl apply -f -
1. bin/helm install jaeger jaeger/charts/jaeger
1. bin/linkerd upgrade --control-plane-tracing=true | kubectl apply -f -
1. kubectl -n linkerd-jaeger port-forward svc/jaeger 16686
1. open http://localhost:16686
1. see traces from the linkerd control plane

Signed-off-by: Alex Leong <alex@buoyant.io>
2020-12-08 14:34:26 -08:00
..
annotations.go Integration tests: Warn (instead of erroring) upon pod restarts (#4623) 2020-06-18 06:08:05 -05:00
annotations_test.go Refactor integration tests to use annotations functions (#4341) 2020-05-08 08:41:42 -05:00
doc.go Introduce script to test multiple cloud providers (#2592) 2019-03-29 16:22:30 -07:00
inject.go More comprehensive injection integration test (#5049) 2020-10-14 19:31:56 +03:00
inject_validator.go Use linkerd-jaeger extension for control plane tracing (#5299) 2020-12-08 14:34:26 -08:00
install.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
kubernetes_helper.go More comprehensive injection integration test (#5049) 2020-10-14 19:31:56 +03:00
stream.go Add integration tests for tap (#1152) 2018-06-19 14:05:36 -07:00
tap.go conformance validation: move `tap_test.go` test helpers to `testutil` (#4800) 2020-07-28 13:12:25 -07:00
test_helper.go Remove logs comparisons in integration tests (#5223) 2020-11-13 16:00:16 -05:00