Skip to content

Commit

Permalink
remove duplicate register fieldindexes in cloneset controller (#888)
Browse files Browse the repository at this point in the history
Signed-off-by: shiyan2016 <shiyan20160606@gmail.com>
  • Loading branch information
shiyan2016 authored Jan 13, 2022
1 parent 2eece61 commit e2454ab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/controller/cloneset/cloneset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func Add(mgr manager.Manager) error {

// newReconciler returns a new reconcile.Reconciler
func newReconciler(mgr manager.Manager) reconcile.Reconciler {
_ = fieldindex.RegisterFieldIndexes(mgr.GetCache())
recorder := mgr.GetEventRecorderFor("cloneset-controller")
if cli := kruiseclient.GetGenericClientWithName("cloneset-controller"); cli != nil {
eventBroadcaster := record.NewBroadcaster()
Expand Down

0 comments on commit e2454ab

Please sign in to comment.