Add the ability to Delete an Agent from the UI
As the GitLab Agent for Kubernetes is tested and adopted by hundreds of GitLab customers each month, a few users noticed that it is not straightforward to remove a registered Agent from GitLab. Until now, Agent registration could be removed only through the GraphQL API. GitLab now ships with a UI-based approach to remove an Agent registration.
Once an Agent is removed from GitLab, its related tokens are invalidated, and the given connection stops working immediately.
Problem to solve
When the users uninstall an agent from their cluster, the Agent remains in the Agent listing but at that point it is not valid nor useful. To allow the users to declutter the Agent list from unused Agents we should introduce the ability to delete them.
User experience goal
- Provide the ability to delete an Agent record.
- Warn the user if the agent has any active connections.
Given that an Agent exists When the user is on an Agent details page Then a "red" delete button is shown on the page
Given that the user is on the Agent details page When clicks the delete button Then a confirmation dialogue comes up that asks the agent name for confirmation
Definition of done
Agent list contains options column
Actions include: Delete Agent
Update documentation added regarding where to delete an Agent