-
Notifications
You must be signed in to change notification settings - Fork 114
Refactor adding/removing/contains finalizers #203
Refactor adding/removing/contains finalizers #203
Conversation
I'm not really seeing how this change improves the organization of the finalizers? It replaces some custom code with a slightly safe utility function but that's it, AIUI. I'm ok with the change (other than one caveat) but I'm wondering if I missed something in the review, or if this PR was supposed to include something that got lost somehow? |
bb33c3d
to
ba82ef0
Compare
Ok, take 2 ready. PTAL! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last change and then lgtm.
To be able to distinguish between updating just the status and updating the full resource in a follow-up PR. Tested: Ran both unit-tests ('make test') and integration test ('make test-e2e') successfully.
ba82ef0
to
811b9aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianludwin, erikgb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
To be able to distinguish between updating just the status and updating the full resource (in a follow-up PR). A controller should just update the status of the controlling resource, with some exceptions - i.e. finalizers. Currently HNC always updates the complete resource, and not just the status, and this has to be fixed to open up for #142.
Tested: Ran both unit-tests ('make test') and integration test ('make test-e2e') successfully.
Relates to #200.