Skip to content

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:

  1. Adds Actions dropdown with the Delete agent button
  2. Adds a confirmation dropdown asking the user to type the agent name in order to proceed with the deletion
  3. Adds a toast showing the deletion status (success or error)
  4. Uses the deleteClusterAgent mutation
  5. Updates Apollo cache to immediately remove the deleted agent from the table
  6. Updates the corresponding section in the docs

Screenshots or screen recordings

Screenshot_2021-12-29_at_17.39.02

Screenshot_2021-12-29_at_17.39.18

Screenshot_2021-12-29_at_17.39.59

Screenshot_2021-12-29_at_17.40.14

Screenshot_2021-12-20_at_16.52.06

Screenshot_2021-12-20_at_16.53.22

How to set up and validate locally

  1. Go to Infrastructure -> Kubernetes clusters
  2. To create an agent click the Actions button and follow the instructions in the popup
  3. 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.

Related to #323055 (closed)

Edited by Anna Vovchenko

Merge request reports