From c37b200930472ff8f7f5bfa6c8ddcaf6b6a047cd Mon Sep 17 00:00:00 2001 From: Rewant Soni Date: Tue, 3 Dec 2024 21:44:31 +0530 Subject: [PATCH] controllers: fix predicate to trigger reconcile for mmode controller trigger reconcile of mmode controller when the storageClient's status is updated Signed-off-by: Rewant Soni --- internal/controller/maintenancemode_controller.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/controller/maintenancemode_controller.go b/internal/controller/maintenancemode_controller.go index 8dc14997..1c03d125 100644 --- a/internal/controller/maintenancemode_controller.go +++ b/internal/controller/maintenancemode_controller.go @@ -63,10 +63,7 @@ func (r *MaintenanceModeReconciler) SetupWithManager(mgr ctrl.Manager) error { Watches( &v1alpha1.StorageClient{}, &handler.EnqueueRequestForObject{}, - builder.WithPredicates( - generationChangePredicate, - maintenanceModeChangedPredicate, - ), + builder.WithPredicates(maintenanceModeChangedPredicate), ). Complete(r) }