linkerd2/controller/api/destination/watcher
Alex Leong c5963fbbb1
Set targetCluster label even when serviceFqn is not set (#8542)
Fixes #8134

The multicluster probe-gateway service (which is used by the service-mirror controller to send health probes to the remote gateway) has `mirror.linkerd.io/cluster-name` label but it does not have a `mirror.linkerd.io/remote-svc-fq-name` annotation.  This makes sense because the probe-gateway service does not correspond to any target service on the remote cluster and instead targets the gateway itself.

We update the logic in the destination controller so that we can still add the `dst_target_cluster` metric label when only the `mirror.linkerd.io/cluster-name` label is present but not the `mirror.linkerd.io/remote-svc-fq-name` annotation.  This allows us to have the `dst_target_cluster` metric label for service-mirror controller probe traffic.

Signed-off-by: Alex Leong <alex@buoyant.io>
2022-05-31 16:09:51 -07:00
..
endpoints_watcher.go Set targetCluster label even when serviceFqn is not set (#8542) 2022-05-31 16:09:51 -07:00
endpoints_watcher_test.go Fix identity overrides for endpoint slices (#7243) 2021-11-09 16:38:46 -08:00
k8s.go go: Enable `errorlint` checking (#7885) 2022-02-16 18:32:19 -07:00
opaque_ports_watcher.go Remove legacy upgrade and it's references (#7309) 2021-11-29 20:08:58 +05:30
opaque_ports_watcher_test.go Support whitespaces in opaqueports annotation (#8355) 2022-04-28 13:46:27 +03:00
profile_watcher.go Add `gosec` and `errcheck` lints (#7954) 2022-03-03 10:09:51 -07:00
profile_watcher_test.go Fix race in destination unit test (#8065) 2022-03-14 11:26:05 -07:00
prometheus.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
server_watcher.go Update `GetProfile` clients with policy server updates (#7388) 2021-12-08 12:26:27 -07:00
test_util.go Use go-test/deep for comparisons in tests (#8427) 2022-05-05 09:31:07 -07:00