-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
GITOPS Sprint 221
A user is only able to delete an ApplicationSet if they have permissions to delete all of the Applications managed by the ApplicationSet. This check is performed in ApplicationSet controller, on receiving a delete request via GRPC from API server.
- For each application owned by the ApplicationSet that the user is attempting to delete:
- Check if the user has delete permission on the Application
- Check if the user has delete permission within the project

- If the user does NOT have permission on least one of these, the operation should fail.
- On pass, ApplicationController server deletes (ie kubectl delete) the ApplicationSet resource.
Acceptance Criteria:
- `argocd appset delete` command works successfully
- ApplicationSet and respective Applications are deleted successfully