You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Objective: To add the ability for users to specify that resources created in a Space should not be deleted when the Space is deleted.
Steps:
Add an annotation "nauticus.io/ignore-deletion" to the Space CRD.
Update the Nauticus controller code to check for this annotation when a Space is deleted.
If the annotation is present, update the owner references of all resources within the Space to remove the Space as the owner. This will prevent Kubernetes from automatically deleting the resources when the Space is deleted.
Create a field in the Space CRD that allow users to specify a grace period before the controller deletes the resources.
Modify the controller to delete all resources in the space after the grace period, this will allow the users to drain their resources before they are deleted.
Test the new feature by creating a Space and adding resources, then deleting the Space and verifying that the resources are not deleted automatically and the controller deletes them after the grace period.
Document the new feature in the README and update the user documentation accordingly.
@sftim I don't think so, today we have a lightweight finalizer in the Space controller to manage the deletion of the Space resource.
We should find a way to update the controller so it can ignores the underlying managed resources when a specific annotation is present. Something equivalent to Google Config Connector deletion policy.
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #nauticus on Kubernetes Slack.
Objective: To add the ability for users to specify that resources created in a Space should not be deleted when the Space is deleted.
Steps:
References
The text was updated successfully, but these errors were encountered: