linkerd2/controller/api/destination
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
..
watcher Set targetCluster label even when serviceFqn is not set (#8542) 2022-05-31 16:09:51 -07:00
client.go enable `staticcheck` (#8037) 2022-03-10 15:43:35 -08:00
destination_fuzzer.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00
endpoint_profile_translator.go Add `gosec` and `errcheck` lints (#7954) 2022-03-03 10:09:51 -07:00
endpoint_translator.go destination: Fix bug in filtering logic (#8169) 2022-03-29 17:11:32 -07:00
endpoint_translator_test.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00
fallback_profile_listener.go enable `structcheck` linter (#8043) 2022-03-18 09:15:11 -06:00
fallback_profile_listener_test.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
opaque_ports_adaptor.go Return default opaque ports in the destination service (#5814) 2021-02-24 14:55:31 -05:00
profile_translator.go Add `gosec` and `errcheck` lints (#7954) 2022-03-03 10:09:51 -07:00
profile_translator_test.go enable `staticcheck` (#8037) 2022-03-10 15:43:35 -08:00
server.go go: Enable `errorlint` checking (#7885) 2022-02-16 18:32:19 -07:00
server_test.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00
test_util.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00