From e2454abd7ab436450d9a176b67c7088a257c9bac Mon Sep 17 00:00:00 2001 From: shiyan Date: Thu, 13 Jan 2022 16:30:36 +0800 Subject: [PATCH] remove duplicate register fieldindexes in cloneset controller (#888) Signed-off-by: shiyan2016 --- pkg/controller/cloneset/cloneset_controller.go | 1 - 1 file changed, 1 deletion(-) 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()