mirror of https://github.com/k3s-io/k3s
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
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