linkerd2/controller/proxy-injector/fake/data
Alejandro Pedraza 8afe36e6e9
Fix jaeger injector interfering with upgrades to 2.12.0 (#9429)
Fixes issue described in [this comment](https://github.com/linkerd/linkerd2/issues/9310#issuecomment-1247201646)
Rollback #7382

Should be cherry-picked back into 2.12.1

For 2.12.0, #7382 removed the env vars `_l5d_ns` and `_l5d_trustdomain` from the proxy manifest because they were no longer used anywhere. In particular, the jaeger injector used them when injecting the env var `LINKERD2_PROXY_TAP_SVC_NAME=tap.linkerd-viz.serviceaccount.identity.$(_l5d_ns).$(_l5d_trustdomain)` but then started using values.yaml entries instead of these env vars.

The problem is when upgrading the core control plane (or anything else) to 2.12.0, the 2.11 jaeger extension will still be running and will attempt to inject the old env var into the pods, making reference to `l5d_ns` and `_l5d_trustdomain` which the new proxy container won't offer anymore. This will put the pod in an error state.

This change restores back those env vars. We will be able to remove them at last in 2.13.0, when presumably the jaeger injector would already have already been upgraded to 2.12 by the user.

Replication steps:
```bash
$ curl -sL https://run.linkerd.io/install | LINKERD2_VERSION=stable-2.11.4 sh
$ linkerd install | k apply -f -
$ linkerd jaeger install | k apply -f -
$ linkerd check
$ curl -sL https://run.linkerd.io/install | LINKERD2_VERSION=stable-2.12.0 sh
$ linkerd upgrade --crds | k apply -f -
$ linkerd upgrade | k apply -f -
$ k get po -n linkerd
NAME                                      READY   STATUS               RESTARTS     AGE
linkerd-identity-58544dfd8-jbgkb          2/2     Running              0            2m19s
linkerd-destination-764bf6785b-v8cj6      4/4     Running              0            2m19s
linkerd-proxy-injector-6d4b8c9689-zvxv2   2/2     Running              0            2m19s
linkerd-identity-55bfbf9cd4-4xk9g         0/2     CrashLoopBackOff     1 (5s ago)   32s
linkerd-proxy-injector-5b67589678-mtklx   0/2     CrashLoopBackOff     1 (5s ago)   32s
linkerd-destination-ff9b5f67b-jw8w5       0/4     PostStartHookError   0 (8s ago)   32s
```
2022-09-20 10:41:34 -07:00
..
annotation.patch.json Add opaque ports namespace inheritance to pods (#5941) 2021-03-29 19:41:15 -04:00
deployment-inject-disabled.yaml Add pod spec annotation to disable injection in CLI and auto-injector (#2187) 2019-02-01 16:57:06 -08:00
deployment-with-injected-proxy.yaml docker: Access container images via cr.l5d.io (#5756) 2021-02-17 14:31:54 -08:00
filter-pod-opaque-ports.yaml Filter default opaque ports for pods and services (#6774) 2021-08-31 16:11:42 -06:00
filter-service-opaque-ports.yaml Filter default opaque ports for pods and services (#6774) 2021-08-31 16:11:42 -06:00
filtered-pod-opaque-ports.json Filter default opaque ports for pods and services (#6774) 2021-08-31 16:11:42 -06:00
filtered-service-opaque-ports.json Filter default opaque ports for pods and services (#6774) 2021-08-31 16:11:42 -06:00
inject-init-container-spec.yaml Allow proxy-init container to run as non-root (#7162) 2021-11-05 10:44:32 -05:00
inject-linkerd-secrets-volume-spec.yaml Have the Webhook react to pod creation/update only (#2472) 2019-03-26 11:53:56 -05:00
namespace-inject-disabled.yaml Update auto-injector to require opt-in by namespace or pod (#2209) 2019-02-06 17:37:14 -08:00
namespace-inject-enabled.yaml Update auto-injector to require opt-in by namespace or pod (#2209) 2019-02-06 17:37:14 -08:00
namespace-with-opaque-ports.yaml Add services to proxy injector for opaque ports annotation (#5766) 2021-02-17 20:58:18 -05:00
pod-inject-empty.yaml Include pod probe ports in inbound proxy config (#8645) 2022-06-13 18:33:56 +01:00
pod-inject-enabled.yaml Include pod probe ports in inbound proxy config (#8645) 2022-06-13 18:33:56 +01:00
pod-with-debug-disabled.yaml Include pod probe ports in inbound proxy config (#8645) 2022-06-13 18:33:56 +01:00
pod-with-debug-enabled.yaml Set `LINKERD2_PROXY_INBOUND_PORTS` during injection (#6445) 2021-07-09 11:52:20 -05:00
pod-with-debug.patch.json Fix jaeger injector interfering with upgrades to 2.12.0 (#9429) 2022-09-20 10:41:34 -07:00
pod-with-ns-annotations.patch.json Fix jaeger injector interfering with upgrades to 2.12.0 (#9429) 2022-09-20 10:41:34 -07:00
pod-with-opaque-ports.yaml Add opaque ports namespace inheritance to pods (#5941) 2021-03-29 19:41:15 -04:00
pod-without-opaque-ports.yaml Add opaque ports namespace inheritance to pods (#5941) 2021-03-29 19:41:15 -04:00
pod.patch.json Fix jaeger injector interfering with upgrades to 2.12.0 (#9429) 2022-09-20 10:41:34 -07:00
service-with-opaque-ports.yaml Add services to proxy injector for opaque ports annotation (#5766) 2021-02-17 20:58:18 -05:00
service-without-opaque-ports.yaml Add services to proxy injector for opaque ports annotation (#5766) 2021-02-17 20:58:18 -05:00