Deleted workspace roles can be used in 'Department Management'
Created by: wenxin-01
Versions used(KubeSphere/Kubernetes)
KubeSphere: ks3.1
Preset conditions There is a workspace role 'test-role' in workspace 'test'
To Reproduce Steps to reproduce the behavior:
- Go to workspace 'test'
- Click on 'Workspace Settings'
- Click on 'Department Management'
- Click on 'Set Department'
- Create a department named 'test-group' use workspace role 'test-role'
- Delete workspace role 'test-role'
- Go to 'Set Department ' check department 'test-group' and click on 'ok'
Expected behavior When deleting a role, it indicates that the role has been used by the department, and can not delete
Actual behavior
/kind bug /priority low /milestone 3.1.0 /assign @xuliwenwenwen