Create reusable Requeue functions for the Reconcile loop

Summary

At many points in our Reconcile loop, we return in a few ways depending on whether we want to requeue:

  • return ctrl.Result{}, err to requeue
  • reutrn ctrl.Result{}, nil to not requeue
  • return ctrl.Result{RequeueAfter: waitInterval}, nil to requeue after the specified wait period

References

Acceptance criteria

  • Functions are created for common reconcile loop returns
  • Functions are implemented in the reconcile loop
Edited by Mitchell Nielsen