elemental icon indicating copy to clipboard operation
elemental copied to clipboard

elemental cleanup

Open pgonin opened this issue 3 years ago • 4 comments

Describe the solution you'd like: In a similar way rancher-cleanup removes all resources associated with Rancher to cleanup a cluster, there should be a way to cleanup elemental resources. https://github.com/rancher/rancher-cleanup

This is in particular necessary in backup / restore operations that aim to return in a past point i tie on the same cluster.

pgonin avatar Oct 27 '22 15:10 pgonin

This should probably be integrated into rancher-cleanup 🤔

/cc @agracey

kkaempf avatar Oct 28 '22 07:10 kkaempf

This should probably be integrated into rancher-cleanup thinking

Indeed, if technically possible I'd say the best approach would be to have some sort of generic plugins cleanup. From a plugin perspective it feels not a very good solution that rancher utilities need to be aware of elemental (or any other plugin) specifics, rancher should not need to be aware of all plugins resources, as this slightly couples the releases of rancher plugins to rancher releases.

davidcassany avatar Oct 28 '22 07:10 davidcassany

Agreed with @davidcassany about the coupling.

IMO, the extensions mechanism should allow for a way for an extension to specify the resources it needs for backup/restore. This would allow for the same decoupling but still get the central automation.

@nwmac, is this something that's doable in the not-to-distant future?

agracey avatar Oct 28 '22 18:10 agracey

I think my suggestion here is to allow the UIPlugin.catalog.cattle.io to specify CRDs provided and how backup/restore should work. Then the cleanup logic can be extended by the core team.

agracey avatar Oct 30 '22 20:10 agracey