Files
kubernetes/pkg/controller
Rahul 2d5d3f0a23 fix(endpoint): avoid panic on services with empty IPFamilies
Accessing svc.Spec.IPFamilies[0] without a bounds check panics when a
service reaches the controller with an empty IPFamilies field. This can
happen via watch events: the apiserver's defaultOnRead decorator populates
IPFamilies on GET/LIST but not on watch (cachingObject wrapping bypasses
the type assertion).

Restore the inference logic removed in #130101: fall back to ClusterIP
for headful services and pod IP for headless services.

Signed-off-by: Rahul <rahulbabu95@gmail.com>
2026-05-21 13:45:59 -07:00
..
2025-03-08 15:18:00 -08:00
2024-12-02 16:59:34 +01:00
2025-01-15 18:14:32 +08:00
2025-06-06 20:45:35 +00:00
2024-12-02 16:59:34 +01:00
2025-01-20 13:01:53 +00:00
2024-12-02 16:59:34 +01:00