EKS Clusters: Select cloud provider buttons
What does this MR do?
This MR is part of delivering #22392 (closed). It does not deliver the whole feature. It only delivers the functionality described below:
Displays Google GKE and Amazon EKS logos in the buttons to select a cloud provider to create a K8 cluster
![](/-/project/278964/uploads/afde15b761cdac4b4138d8c871da570e/select_cloud_buttons.png)
When the user clicks Amazon EKS button, it displays Create EKS Cluster form. It changes the tab title to "Create new Cluster on EKS"
![](/-/project/278964/uploads/69f76310eaab8e9972df8d9ed59665b0/eks_cluster_form_tab.png)
When the user clicks "Google GKE", it should be redirected to the Create GKE Cluster form.
![](/-/project/278964/uploads/069994d16194f01bfe5acc2445551165/2019-10-15_15.42.30.gif)
No user-facing changes
- Splits and extracts GKE Cluster template into individual HAML partials for easier reuse.
- Implements E2E test that ensures a user can open the "Create EKS cluster" form.
Testing
Before testing
- Enable
create_eks_clusters
feature flag - Set up Google OAuth https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/howto/google-oauth2.md
How to test
- In the sidebar menu, select Operations -> Kubernetes
- Add Kubernetes cluster button.
Edited by 🤖 GitLab Bot 🤖