Add the ability to Delete an Agent from the actions dropdown
What does this MR do and why?
This MR adds changes to the Agents table view:
- Adds Actions dropdown with the Delete agent button
- Adds a confirmation dropdown asking the user to type the agent name in order to proceed with the deletion
- Adds a toast showing the deletion status (success or error)
- Uses the
deleteClusterAgent
mutation - Updates Apollo cache to immediately remove the deleted agent from the table
- Updates the corresponding section in the docs
Screenshots or screen recordings
How to set up and validate locally
- Go to Infrastructure -> Kubernetes clusters
- To create an agent click the Actions button and follow the instructions in the popup
- To delete an agent click the Delete agent button from the Actions column
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #323055 (closed)
Edited by Anna Vovchenko