mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-07-25 01:28:31 +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 {
|
for _, port := range endpointSlice.Ports {
|
||||||
if port.Port != nil && *port.Port == *healthOpts.Port {
|
if port.Port != nil && *port.Port == *healthOpts.Port {
|
||||||
matchesPort = true
|
matchesPort = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !matchesPort {
|
if !matchesPort {
|
||||||
|
Reference in New Issue
Block a user