Skip to content

Implement a dedicated controller for handling Kyma deprovisioning #2446

@ruanxin

Description

@ruanxin

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 setup Watches()
  • Remove existing Kyma deprovisioning logic from the current Kyma controller.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions