Allow selection of existing GKE clusters in Cluster page

Description

We already support connecting to GKE to create a new cluster. Why not allowing to select one of the existing clusters instead?

Proposal

In the CI/CD > Cluster page, allow selection of existing GKE clusters fetched realtime from GCP.

The flow could be:

  1. ask for OAuth2 if not already available, to interact with GCP
  2. fetch the list of GKE clusters user has access to, via GCP APIs
  3. list the clusters in a dropdown
  4. user picks up one
  5. fetch parameters for that cluster, configure it as an existing cluster

Links / references

Kubernetes/GKE integration: https://gitlab.com/gitlab-org/gitlab-ce/issues/35956

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖