-
Couldn't load subscription status.
- Fork 32
Open
Description
Description
Currently, Kyma controller handles all reconciliation tasks. As the complexity of the reconciliation logic increases, mixing both provisioning and deprovisioning together makes the business logic hard to maintain and read.
Typical Symptom: We can find many specific condition handling if GetDeletionTimestamp().IsZero() to control when the CR is under deletion, and even worse, the code must follow a specific order.
To improve clarity and simplify the logic, we should split the provisioning and deprovisioning tasks into separate controllers.
AC
- Implement a dedicated controller for handling Kyma deprovisioning.
- filter item with
GetDeletionTimestamp().IsZero()in the controller setupWatches()
- filter item with
- Remove existing Kyma deprovisioning logic from the current Kyma controller.
Metadata
Metadata
Assignees
Labels
No labels