-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Created on 2023-03-07 by Piotr Bochynski (@pbochynski).
Decision log
| Name | Description |
|---|---|
| Title | Strategy for removing custom resource of module operator |
| Due date | 2023-03-07 |
| Status | Accepted |
| Decision type | Choice |
| Affected decisions | - |
Context
When Kyma module is disabled or the main custom resource managed by the module operator gets deleted it should wait until all dependent resources are deleted. The module operator should keep the finalizer on the resource and release it only when the last resource was deleted. This is so-called blocking strategy.
In the case of the Kyma cluster termination, the blocking strategy is not optimal. During de-provisioning quick clean-up is much more effective and the operator should drop all the dependencies immediately. This strategy is called cascading delete strategy
Decision
The decision is that blocking strategy is the default for all module operators. Deprovisioning use case should be handled by cascading delete strategy when this feature is implemented.
Consequences
Kyma users are better protected against accidental removal of the module.