mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
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()
This commit is contained in:
commit
3e41bc8d6c
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user