Skip to content

Commit

Permalink
controllers: fix predicate to trigger reconcile for mmode controller
Browse files Browse the repository at this point in the history
add an predicate.Or trigger reconcile of mmode controller when
the storageClient's status is updated

Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Dec 3, 2024
1 parent c99a838 commit b7ddec6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/controller/maintenancemode_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ func (r *MaintenanceModeReconciler) SetupWithManager(mgr ctrl.Manager) error {
&v1alpha1.StorageClient{},
&handler.EnqueueRequestForObject{},
builder.WithPredicates(
generationChangePredicate,
maintenanceModeChangedPredicate,
predicate.Or(
generationChangePredicate,
maintenanceModeChangedPredicate,
),
),
).
Complete(r)
Expand Down

0 comments on commit b7ddec6

Please sign in to comment.