-
Notifications
You must be signed in to change notification settings - Fork 4
feat(core): add suspend annotation handling #1534
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
Conversation
8a9c0c0 to
056f0b9
Compare
|
Maybe we could do this in lifecycle pkg instead? If suspend annotation exists then each greenhouse object can implement the suspend interface to set the necessary suspend field. Wdyt? Along the same lines of skip reconcile etc… |
The For the reconcile we could think about keeping the annotation. That way the UI could set a timestamp when a reconcile is requested for the Plugin. So that the controller does the needful. For kubectl interaction the annotation would need to be updated. Then we can in the first place ensure that this annotation will always trigger reconciliation on the resources and we can set the reconcile annotation on managed flux resources if they have changed. |
056f0b9 to
244d867
Compare
|
Nice, thx for adding this! |
Started to look into refactoring the docs as a whole. New entries are currently logged here: #1521 |
all reconciliation is skipped if suspend annotation is set. This includes regular reconciliation and deletion. Deletion may be handled after the annotation is removed. For controllers such as Catalog/Plugin the provisioned Flux resources are suspended as well. Ensuring no changes are performed in-cluster or on remote clusters.
244d867 to
a8f9130
Compare
abhijith-darshan
left a comment
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.
🚀
(P.S - We need a follow-up ticket to update the E2E's for Plugin & Catalog)
Description
all reconciliation is skipped if suspend annotation is set. This includes regular reconciliation and deletion. Deletion may be handled after the annotation is removed.
For controllers such as Catalog/Plugin the provisioned Flux resources are suspended as well. Ensuring no changes are performed in-cluster or on remote clusters.
What type of PR is this? (check all applicable)
Related Tickets & Documents
Added tests?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added to documentation?
Checklist