kyma-project / busola

Web based Kubernetes Dashboard with a focus on privacy that requires no active components or special privileges in your cluster.
Apache License 2.0
26 stars 48 forks source link

Delete module with managed resources and operator resources #3345

Open pbochynski opened 1 month ago

pbochynski commented 1 month ago

Description Users should be aware of existing resources coming from the modules when they choose to delete one of them. If there is at least one resource user should be given a choice on how to proceed:

  1. cancel the deletion (nothing happens)
  2. delete all managed resources first and once the list is empty then delete the module

When the module is managed (entry exists in the default Kyma CR) the deletion should only remove that entry from Kyma CR. For not managed modules deletion should actively remove all module operator resources.

Reasons Currently, the module deletion process can hang and users have to figure out how to unblock it themselves. The module operators wait until all dependent managed resources are deleted. Users have to find all of these resources and delete them one by one. Another problem is that users are not aware of the consequences of the module deletion and can trigger deletion even if the module is in use (a lot of resources exist).

Acceptance Criteria

Attachments Epic: https://github.com/kyma-project/busola/issues/3447 See the deletion scenario in this issue: https://github.com/kyma-project/kyma/issues/18450

mrCherry97 commented 1 month ago

Will be planned after https://github.com/kyma-project/lifecycle-manager/issues/1472 They will prepare the testing environment for us, and we will start working on this topic.