Merge pull request #82053 from tedyu/svc-update-break

Break out of loop when finalizer is found
This commit is contained in:
Kubernetes Prow Robot 2019-09-11 18:27:04 -07:00 committed by GitHub
commit 439e92b0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ func WaitForServiceUpdatedWithFinalizer(cs clientset.Interface, namespace, name
for _, finalizer := range svc.Finalizers {
if finalizer == servicehelper.LoadBalancerCleanupFinalizer {
foundFinalizer = true
break
}
}
if foundFinalizer != hasFinalizer {