-
Notifications
You must be signed in to change notification settings - Fork 103
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
Delete instance workflow/trigger #1046
Comments
oh yeah, I like the idea, we've been actually talking about something similar internally, we just call it an uninstall plan. Just to help us talk about it/prioritize it, could you just briefly explain what kind of logic would you add to the uninstall/delete plan? By the way, I am sure you know but right now when you remove an instance, all objects owned by that instance (all your resources) are automatically garbage collected and removed as well. But this is also not set in stone, it can be potentially dangerous and we're also discussing if this should stay or go |
@alenkacz , My use case if very simple. We create a database on the deploy workflow.. And we need to delete it on the uninstall/delete of the instance. Right now the workaround is to have like a isDeleted true/false parameter that triggers a workflow that deletes all resources. Then have a CronJob that checks for instances with that parameter set to true and deletes the CR. |
Regarding if you should delete all resources when you remove the instance I think it make perfect sense to delete everything. |
This is the current behavior, that is what happens if you do if you run the delete in foreground, I think that is exactly the behavior you're gonna get |
Great! So running a workflow before deleting the CR will be easier to do right? And that also covers my use case. Cause we can control the deletion order etc etc.. |
uauu! Awesome work! |
Would be great to have a delete workflow that is triggered on the instance delete.
We already have deploy, update, upgrade pre-defined triggers but no delete.
Delete is very useful when you need to perform cleanup tasks before/after deleting the instance.
Ex, A Job that cleans some stuff.
On helm we have lots of hooks that are triggered on specific events. The one I'm missing here is the delete.
The text was updated successfully, but these errors were encountered: