linkerd2/controller/api/destination
Alex Leong 3bd01cac9c
add nil check when reading endpoint hostname (thanks @acallejaszu) (#12689)
Fixes #12686

When an endpoint in an EndpointSlice resource does not contain a hostname field, the destination controller can panic while looking for an endpoint with a certain hostname.  This happens when doing a lookup with a pod dns name.

We add a nil check to avoid the panic.

We add such an endpoint to our test fixture to exercise this case.

Signed-off-by: Alex Leong <alex@buoyant.io>
2024-06-10 10:45:31 -07:00
..
external-workload chore: fix function name in comment (#12396) 2024-04-10 15:46:45 +01:00
watcher add nil check when reading endpoint hostname (thanks @acallejaszu) (#12689) 2024-06-10 10:45:31 -07:00
client.go build(deps): bump google.golang.org/grpc from 1.63.2 to 1.64.0 (#12593) 2024-05-22 14:40:04 -05:00
dedup_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
default_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
destination_fuzzer.go Add queuing to profile translator (#11546) 2023-11-09 07:32:30 -05:00
endpoint_profile_translator.go feat(destination): Add meshed HTTP/2 keep-alive settings (#12504) 2024-04-30 19:35:30 +00:00
endpoint_profile_translator_test.go Fix flakey Handles_overflow test (#12555) 2024-05-07 13:06:58 -07:00
endpoint_translator.go Add IPv6 support for the destination controller (#12428) 2024-05-02 14:39:05 -05:00
endpoint_translator_test.go Add IPv6 support for the destination controller (#12428) 2024-05-02 14:39:05 -05:00
fallback_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
fallback_profile_listener_test.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
opaque_ports_adaptor.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
profile_translator.go Add queuing to profile translator (#11546) 2023-11-09 07:32:30 -05:00
profile_translator_test.go Add queuing to profile translator (#11546) 2023-11-09 07:32:30 -05:00
server.go chore(controller): Remove stream concurrency limits (#12598) 2024-05-15 18:07:15 +01:00
server_ipv6_test.go Add IPv6 support for the destination controller (#12428) 2024-05-02 14:39:05 -05:00
server_test.go Add IPv6 support for the destination controller (#12428) 2024-05-02 14:39:05 -05:00
test_util.go add nil check when reading endpoint hostname (thanks @acallejaszu) (#12689) 2024-06-10 10:45:31 -07:00