Skip to content

Add new page for the cluster creation

What does this MR do and why?

As we are deprecating the certificate-based clusters creation/connection, we have already introduced a feature flag certificate_based_clusters that disables this functionality.

This MR introduces the new page for cluster creation. The page is available on the project level and leads users to the docs links.

The MR also changes the Actions menu on the Infrastructure -> Kubernetes clusters page.

On Project level

  1. Feature flag is enabled (certificate_based_clusters: true)
    • Actions menu shows 3 actions with the separator.
    • 3 tabs are available for the Clusters page.
    • Create new cluster leads to /clusters/new with two buttons that open forms.
    • Connect existing cluster leads to clusters/connect with the form.
  2. Feature flag is disabled (certificate_based_clusters: false)
    • Actions menu shows 2 actions without a separator.
    • 1 tab is available for the Clusters page.
    • Create and connect new cluster leads to /clusters/create_cluster with two buttons that open documentation.
    • cluster/connect returns 404
    • cluster/new returns 404

On Group and Instance levels

  • The Kubernetes sidebar menu is hidden.
  • /admin/clusters page returns 404.
  • /groups/<group>/-/clusters page returns 404.

Screenshots or screen recordings (updated)

Screen_Recording_2022-03-24_at_02.40.25

The dropdown for the disabled feature flag:

Screenshot_2022-03-24_at_01.16.12

The dropdown for the enabled feature flag on project level:

Screenshot_2022-03-24_at_01.13.26

The dropdown for the enabled feature flag on group/admin level:

Screenshot_2022-03-24_at_01.14.03

Create cluster page

/clusters/new (deprecated page) /clusters/create_cluster (new page)
Screenshot_2022-03-17_at_16.39.22 Screenshot_2022-03-17_at_17.15.13

How to set up and validate locally

  1. Set certificate_based_clusters to false.
  2. Visit Infrastructure -> Kubernetes clusters page and validate the Actions dropdown.
  3. From the dropdown select Create a new cluster and validate the page.
  4. Create a new cluster page should render links to the documentation.

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

Edited by Anna Vovchenko

Merge request reports