Skip to content

Add alert suggesting to use Terraform when there're more than 10 agents

What does this MR do and why?

This MR adds an alert suggesting to use Terraform for managing the agents when there're more than 10 available agent configurations. The alert also notifies that we show only 100 agents within the agent's creation dropdown.

Screenshots or screen recordings

If there're more than 10 agents: Screenshot_2023-08-11_at_17.20.59

If there're more than 100 agents: Screenshot_2023-08-11_at_17.41.45

How to set up and validate locally

  1. Enable KAS on your GDK (steps 1-2 from the guide).
  2. Create 10 agent configurations by adding empty files .gitlab/agents/<your-agent-name>/config.yaml
  3. Visit the Project -> Infrastructure -> Kubernetes clusters page and create an agent following the instruction from the modal.
    • Select the "Connect a cluster" button
    • The modal should pop up
    • In the modal select "Select an agent or enter a name to create new"
  4. Verify the alert is shown

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Review progress:

Related to #395486 (closed)

Edited by Anna Vovchenko

Merge request reports

Loading