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
Kubernetes Submit Queue 2018-08-16 02:27:02 -07:00 committed by GitHub
commit 58d43abc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func (ec *EstablishingController) processNextWorkItem() bool {
err := ec.syncFn(key.(string))
if err == nil {
ec.queue.Forget(key)
return true
}