linkerd2/controller/api/destination
Alejandro Pedraza d3d7f4e2e2
Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458)
The destination service now returns `OpaqueTransport` hint when the annotation
matches the resolve target port. This is different from the current behavior
which always sets the hint when a proxy is present.

Closes #5421

This happens by changing the endpoint watcher to set a pod's opaque port
annotation in certain cases. If the pod already has an annotation, then its
value is used. If the pod has no annotation, then it checks the namespace that
the endpoint belongs to; if it finds an annotation on the namespace then it
overrides the pod's annotation value with that.

Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
2021-01-05 14:54:55 -05:00
..
watcher Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458) 2021-01-05 14:54:55 -05:00
client.go Trace Control plane Components with OC (#3495) 2019-10-18 12:19:13 -07:00
endpoint_translator.go Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458) 2021-01-05 14:54:55 -05:00
endpoint_translator_test.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
fallback_profile_listener.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07: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 Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458) 2021-01-05 14:54:55 -05:00
profile_translator.go Add opaque ports to destination service updates (#5294) 2020-12-18 12:38:59 -05:00
profile_translator_test.go profiles: Eliminate default timeout (#4958) 2020-09-10 14:00:18 -07:00
server.go Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458) 2021-01-05 14:54:55 -05:00
server_test.go Destination should return `OpaqueTransport` hint when annotation matches resolved target port (#5458) 2021-01-05 14:54:55 -05:00
traffic_split_adaptor.go Always return destination overrides for services (#4890) 2020-08-19 12:25:58 -07:00
traffic_split_adaptor_test.go Always return destination overrides for services (#4890) 2020-08-19 12:25:58 -07:00