mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Break out of loop when finalizer is found
This commit is contained in:
parent
07e0cce409
commit
07ba65df6d
@ -105,6 +105,7 @@ func WaitForServiceUpdatedWithFinalizer(cs clientset.Interface, namespace, name
|
||||
for _, finalizer := range svc.Finalizers {
|
||||
if finalizer == servicehelper.LoadBalancerCleanupFinalizer {
|
||||
foundFinalizer = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if foundFinalizer != hasFinalizer {
|
||||
|
Loading…
Reference in New Issue
Block a user