Central cleanup job for Shoot clusters on KCP DEV #3480
Labels
area/control-plane
Related to all activities around Kyma Control Plane
kind/feature
Categorizes issue or PR as related to a new feature.
Description
We use currently two cleanup mechanisms for removing shoot-clusters on KCP DEV.
One is executed by KEB and removes Shoot-clusters which were created by KEB. Another job was running decoupled from KEB and removed shoot-clusters created by Provisioner.
To simplify the cleanup approach, a single cleanup job should be preferred. This job retrieves all Shoots from Gardener cluster and verifies whether they are known by KEB. If they are unknown, the cleanup mechanism will delete this cluster, independent who created it:
The deletion has to consider the case, that a Shoot-CR can be marked with the label
owner.do-not-delete: '<bool>'
. Before a cluster is deleted, the cleanup job has to check the existence respectively the value of the label on the Shoot CR.AC:
owner.do-not-delete
label or if the value of the label isfalse
.Reasons
Simplify KCP DEV housekeeping by centralising the shoot-cluster deletion job.
Attachments
The text was updated successfully, but these errors were encountered: