Merge pull request #29430 from lixiaobing10051267/masterBreak

Automatic merge from submit-queue

To break the loop when object found in removeOrphanFinalizer()

To break the loop when object found in removeOrphanFinalizer()
pull/6/head
k8s-merge-robot 2016-07-23 01:32:37 -07:00 committed by GitHub
commit 3e41bc8d6c
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ func (gc *GarbageCollector) removeOrphanFinalizer(owner *node) error {
for _, f := range finalizers {
if f == api.FinalizerOrphan {
found = true
break
} else {
newFinalizers = append(newFinalizers, f)
}