Skip to content

Migrate available_agents_dropdown to GlCollapsibleListbox

What does this MR do and why?

This MR migrates the GlDropdown used to select or create a GitLab agent for Kubernetes to the GlCollapsibleListbox UI element.

Screenshots or screen recordings

Before After
Screen_Shot_2022-12-02_at_22.32.01 Screen_Shot_2022-12-02_at_22.30.47
Screen_Shot_2022-12-02_at_22.32.09 Screen_Shot_2022-12-02_at_22.30.55
Screen_Shot_2022-12-02_at_22.32.18 Screen_Shot_2022-12-02_at_22.31.05
Screen_Shot_2022-12-02_at_22.32.29 Screen_Shot_2022-12-02_at_22.31.19
Screen_Shot_2022-12-02_at_22.32.38 Screen_Shot_2022-12-02_at_22.31.27

How to set up and validate locally

  1. Visit Project -> Infrastructure -> Kubernetes clusters
  2. Select Connect cluster
  3. Verify the agent selection/creation dropdown in the modal

To validate using GitPod you'll need to enable KAS:

  1. Go to the gitlab-development-kit folder

  2. Change the gdk.yml file to add the following lines:

    gitlab_k8s_agent:
      enabled: true
  3. Install Bazel using Bazelisk

    npm install -g @bazel/bazelisk
  4. Run gdk reconfigure and gdk restart

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 #384287 (closed)

Edited by Anna Vovchenko

Merge request reports