linkerd2/controller/api/destination/watcher
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
..
cluster_store.go Fixed destination metrics warning when re-linking (#11253) 2023-08-16 15:27:31 -07:00
cluster_store_test.go Add cluster store size gauge (#11256) 2023-08-16 15:14:22 -07:00
endpoints_watcher.go Refactor ES addition logic in Destination (#12625) 2024-05-22 09:12:19 -05:00
endpoints_watcher_test.go Rename meshTls to meshTLS in ExternalWorkload CRD (#12098) 2024-02-20 11:00:13 -08:00
k8s.go Add IPv6 support for the destination controller (#12428) 2024-05-02 14:39:05 -05:00
opaque_ports_watcher.go Add informer lag histograms (#11534) 2023-11-08 14:56:20 -05:00
opaque_ports_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
profile_watcher.go Add informer lag histograms (#11534) 2023-11-08 14:56:20 -05:00
profile_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
prometheus.go Add support for ExternalWorkloads in endpoint profiles (#11952) 2024-01-23 09:43:12 -08:00
test_util.go Add support for remote discovery (#11224) 2023-08-11 09:31:45 -07:00
workload_watcher.go add nil check when reading endpoint hostname (thanks @acallejaszu) (#12689) 2024-06-10 10:45:31 -07:00
workload_watcher_test.go Add support for ExternalWorkloads in endpoint profiles (#11952) 2024-01-23 09:43:12 -08:00