mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-07-22 18:27:44 +00:00
Minor optimization matching Pods in EndpointSlices
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user