Merge pull request #52891 from hzxuzhonghu/cert-controller
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>. remove duplicated code **What this PR does / why we need it**: remove duplicated code **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: handler initiated twice. ``` cc := &CertificateController{ kubeClient: kubeClient, queue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultControllerRateLimiter(), "certificate"), handler: handler, } cc.handler = handler ``` **Release note**: ```release-note NONE ```
This commit is contained in:
commit
4eadfbb30e
@ -97,7 +97,6 @@ func NewCertificateController(
|
||||
})
|
||||
cc.csrLister = csrInformer.Lister()
|
||||
cc.csrsSynced = csrInformer.Informer().HasSynced
|
||||
cc.handler = handler
|
||||
return cc
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user