-
Notifications
You must be signed in to change notification settings - Fork 219
Extract Cleanup Interface from Reconciler #922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not sure if we should have a separate finalizer annotation, probably would be good enough to have the |
A question is what should happen in case of managed dependent resources. If the cc @metacosm |
Maybe the finalizer name should be part of the |
That's a good question… but I'm not sure what the answer should be :) |
Yeah, not sure either, I see there three options:
So honestly I would just stay with variant 2. - document it, and change it in following versions based on feedback, especially if it would be confusing. |
Regarding the managed dependent resources. What I would do that maybe separate there the cleanup method to new interface too. And change the behavior based on that. That means: |
Uh oh!
There was an error while loading. Please reload this page.
The nice part would be that, this would server also as a switch for the finalizer. So the if the cleanup interface is implemented the finalizers are used otherwise not.
However then we should probably extract the name customization to a new annotation too. Like
@Finalizer(name = "my-custom-name")
in order to customize the finalizer name.Original idea from @scrocquesel .
The text was updated successfully, but these errors were encountered: