mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
directly break the loop if condition map
This commit is contained in:
parent
d323fed024
commit
a6ad0e1a5c
@ -202,6 +202,7 @@ func (cc *clusterClientCache) processServiceUpdate(cachedService *cachedService,
|
|||||||
for _, fed := range cachedFedServiceStatus.Ingress {
|
for _, fed := range cachedFedServiceStatus.Ingress {
|
||||||
if new.IP == fed.IP && new.Hostname == fed.Hostname {
|
if new.IP == fed.IP && new.Hostname == fed.Hostname {
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
|
Loading…
Reference in New Issue
Block a user