cloudoperators / greenhouse

Cloud operations platform
https://cloudoperators.github.io/greenhouse/
Apache License 2.0
12 stars 1 forks source link

[FEAT] - Cluster off-boarding automation #91

Open IvoGoman opened 5 months ago

IvoGoman commented 5 months ago

Priority

(Low) Something is a little off

Description

In order to ensure no objects are left behind there should be a garbage collection that removes all Greenhouse managed resources from the managed cluster. Under normal circumstances the Greenhouse Controller will ensure that their managed CRs are removed during the Lifecycle.

There should be a safe-guarding measure in place to avoid accidental deletion of a cluster.

Acceptance criteria:

Reference Issues

No response

IvoGoman commented 3 months ago

This should provide a mechanism for Greenhouse controllers to add their CRDs to this GC mechanism/ prevent the Cluster from being deleted before the resources were deleted.

auhlig commented 1 month ago

Under normal circumstances the Greenhouse Controller will ensure that their managed CRDs are removed during the Lifecycle.

The other mechanisms sound great, but CRD removal is risky. Deleting the CR definition triggers garbage collection of all its instances. A plugin integrates natively with the customer cluster and users might use CRDs outside of Greenhouse. IMHO Greenhouse should follow the Helm logic and not delete CRDs. WDYT @IvoGoman?

IvoGoman commented 1 month ago

@auhlig small but important typo. It should of course be CR instead of CRD.