devtron
devtron copied to clipboard
Check for helm apps before deleting an environment
Checklist:
- [x] I've searched in the docs and FAQ for my answer
- [x] I've included steps to reproduce the bug.
Describe the bug
When trying to delete an environment, we get an error if any cd-pipeline exists for the same and if there are no cd-pipelines but helm-apps are there it doesn't check those and environment is deleted which results into dangling helm apps which can't be deleted or updated
To Reproduce
- Create an environment
- deploy some devtron-apps as well as helm-apps
- Try deleting environment
- If not able to delete, delete all cd-pipelines and then try to delete
Expected behavior
It shouldn't delete if helm-apps deployed using devtron or cd-pipelines are there
Current behavior
It only checks for cd-pipelines and not helm-apps deployed using devtron