Skip to content

Commit

Permalink
remove duplicate register fieldindexes in cloneset controller (openkr…
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyan2016 committed Jan 13, 2022
1 parent f8d0bc2 commit 66b98fd
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 66b98fd

Please sign in to comment.