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:
cancel the deletion (nothing happens)
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
[ ] A list about affected resources is displayed after clicking the trash icon or Delete on the module
[ ] List in the warning modal contains information about the number of the existing affected resources (example: If user has 10 VirtualServices and wants to remove istio module, then in warning there should be info about this VS)
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:
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
trash icon
orDelete
on the moduleAttachments Epic: https://github.com/kyma-project/busola/issues/3447 See the deletion scenario in this issue: https://github.com/kyma-project/kyma/issues/18450