Open IvoGoman opened 5 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.
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?
@auhlig small but important typo. It should of course be CR
instead of CRD
.
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