diff --git a/pkg/controller/cloneset/cloneset_controller.go b/pkg/controller/cloneset/cloneset_controller.go index 4abdf16619..b5a545d96b 100644 --- a/pkg/controller/cloneset/cloneset_controller.go +++ b/pkg/controller/cloneset/cloneset_controller.go @@ -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()