Skip to content

Commit ee50f7b

Browse files
Add periodic requeue to PIM and OSPF controllers
1 parent a2b32ec commit ee50f7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/controller/core/isis_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (r *ISISReconciler) reconcile(ctx context.Context, s *isisScope) (_ ctrl.Re
269269
cond.Type = v1alpha1.ReadyCondition
270270
conditions.Set(s.ISIS, cond)
271271

272-
return ctrl.Result{}, err
272+
return ctrl.Result{RequeueAfter: Jitter(r.RequeueInterval)}, nil
273273
}
274274

275275
func (r *ISISReconciler) finalize(ctx context.Context, s *isisScope) (reterr error) {

internal/controller/core/pim_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (r *PIMReconciler) reconcile(ctx context.Context, s *pimScope) (_ ctrl.Resu
266266
cond.Type = v1alpha1.ReadyCondition
267267
conditions.Set(s.PIM, cond)
268268

269-
return ctrl.Result{}, err
269+
return ctrl.Result{RequeueAfter: Jitter(r.RequeueInterval)}, nil
270270
}
271271

272272
func (r *PIMReconciler) finalize(ctx context.Context, s *pimScope) (reterr error) {

0 commit comments

Comments
 (0)