Skip to content

Commit dceb615

Browse files
authored
reconcile csv injector periodically (#96)
1 parent 0dd3a01 commit dceb615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/namespacescope_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,12 +1018,12 @@ func (r *NamespaceScopeReconciler) CSVReconcile(req ctrl.Request) (ctrl.Result,
10181018
}
10191019

10201020
if reflect.DeepEqual(originalInstance.Status, instance.Status) {
1021-
return ctrl.Result{}, nil
1021+
return ctrl.Result{RequeueAfter: 180 * time.Second}, nil
10221022
}
10231023
if err := r.Client.Status().Patch(ctx, instance, client.MergeFrom(originalInstance)); err != nil {
10241024
return ctrl.Result{}, err
10251025
}
1026-
return ctrl.Result{}, nil
1026+
return ctrl.Result{RequeueAfter: 180 * time.Second}, nil
10271027
}
10281028

10291029
func (r *NamespaceScopeReconciler) csvtoRequest() handler.ToRequestsFunc {

0 commit comments

Comments
 (0)