Skip to content

Commit

Permalink
feat: Try return on the finalizer addtion to reduce the mulitple calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgialelis committed Jul 3, 2024
1 parent 5910ad5 commit e6af51d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func (r *BusinessServiceReconciler) Reconcile(ctx context.Context, req ctrl.Requ
if err := r.Update(ctx, &businesService); err != nil {
return ctrl.Result{}, fmt.Errorf("could not update finalizers: %w", err)
}

return ctrl.Result{}, nil
}
} else {
if controllerutil.ContainsFinalizer(&businesService, businesServiceFinalizer) {
Expand Down

0 comments on commit e6af51d

Please sign in to comment.