Minor optimization matching Pods in EndpointSlices

This commit is contained in:
mmontes11
2025-07-11 13:17:59 +02:00
committed by Martin Montes
parent 4d40bff155
commit 95f5780f90

View File

@ -94,6 +94,7 @@ func IsStatefulSetHealthy(ctx context.Context, client ctrlclient.Client, service
for _, port := range endpointSlice.Ports {
if port.Port != nil && *port.Port == *healthOpts.Port {
matchesPort = true
break
}
}
if !matchesPort {