[Controller] Improve readability of logs during reconcile loop
Closes #78 (closed)
Improves the readability of the logs during the reconcile loop by:
- Increasing log level on some log entries that should only be needed when debugging
- Adding log entries to the
createKubernetesResource
function - Renaming the
createKubernetesResource
function tocreateIfNotExists
to clarify what it's actually doing - Removing extra log entries that were created next to
createIfNotExits
, letting the function handle log entries in a more centralized and standard approach - Adjusting the placement of log entries for the
runJobAndWait
method to better communicate what the controller is doing for each loop
Testing instructions
Deploy to a cluster and watch the logs in the GitLab Operator. You should notice much less volume in the logs. Any feedback on what would be helpful to add / remove / tweak is welcome!
Edited by Mitchell Nielsen