Files
k8sgpt/pkg
Anas Khan 315d28d06e fix: guard against nil TargetRef in Service not-ready endpoints (#1672)
The Service analyzer dereferenced EndpointAddress.TargetRef while building
the not-ready pod list, but TargetRef is optional and can be nil for
addresses not backed by a Pod (bare-IP or manually created Endpoints).
A single such address panicked the whole analyze run with a nil pointer
dereference. Only append the pod label when TargetRef is set; the address
is still counted so the failure message is unchanged. Adds a regression
test covering a not-ready address with no TargetRef.

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
Co-authored-by: Alex Jones <1235925+AlexsJones@users.noreply.github.com>
2026-07-01 06:43:24 +01:00
..
2025-12-22 08:24:18 +00:00
2025-12-22 08:24:18 +00:00
2025-12-22 08:24:18 +00:00