Skip to content

Educate the user about the GitLab agent for Kubernetes when the planned deployment target is Kubernetes

What does this MR do and why?

This MR adds an educational text below the deployment target select on the Create project page if the user chose the Kubernetes (GKE, EKS, OpenShift, and so on) option.

It also removes the show select area if it's not on GitLab.com as we can't access the Snowplow data on self-managed instances.

The MR changes the select to half-width as recommended by @matejlatin in #347547 (comment 839565526)

There should be a Snowplow event sent when the user licks on the docs URL:

category: projects:new
action: visit_docs
label: new_project_deployment_target

Screenshots or screen recordings

Initial view Select opened Kubernetes option selected
Screenshot_2022-04-02_at_20.43.14 Screenshot_2022-04-02_at_20.43.29 Screenshot_2022-04-05_at_19.27.33

How to set up and validate locally

  1. Visit the Create new project page and select Create blank project.
  2. Verify the select field Project deployment target (optional)
  3. Choose the Kubernetes (GKE, EKS, OpenShift, and so on) option to see the educational text.

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

Review progress:

Edited by Anna Vovchenko

Merge request reports