mirror of https://github.com/k3s-io/k3s
Merge pull request #67370 from yue9944882/chore/fix-crd-establish-controller-ratelimit
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Forget ratelimit on success in crd establish controller /kind bug /area customresources /sig api-machinery **What this PR does / why we need it**: The ratelimit is never cancelled even when CRD controller succesfully updated CRD **Release note**: ```release-note Forget rate limit when CRD establish controller successfully updated CRD condition ```pull/8/head
commit
58d43abc39
|
@ -99,6 +99,7 @@ func (ec *EstablishingController) processNextWorkItem() bool {
|
|||
|
||||
err := ec.syncFn(key.(string))
|
||||
if err == nil {
|
||||
ec.queue.Forget(key)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue