Add a button in the project page to set up a cluster
- This issue will continue to be product managed by @bikebilly - UX will be done by @dimitrieh - FE: @MadLittleMods - BE: To be assigned by @smcgivern. - BE point of contact for technical help if it is required: @grzesiek first, and then @ayufan if @grzesiek is unavailable. - Slack channel: #f_gke_integration - A demo for this feature is targeted for Feb 23 or 24, 2018. ### Description When a project is created, we have a set of tasks that are suggested steps to add more functionality to our application (add a README, add a license, set up CI/CD, etc.). We can add an additional step to set up a cluster leveraging the cluster flow already available in **CI/CD > Clusters**. ### Design Let me summarise what will go in this implementation: #### Empty project ##### Empty state copy + layout changes See mockup ##### No Kubernetes cluster configured/active - Button `Add Kubernetes cluster` - Only visible to owners/admins - Links directly to `clusters/new` page ##### Single Kubernetes cluster configured/active - Anchor/link `Kubernetes cluster` - Only visible to owners/admins - Links directly to `clusters detail` page ##### Multiple Kubernetes clusters configured/active - Anchor/link `Kubernetes clusters` - Only visible to owners/admins - Links directly to `clusters list` page ##### Auto DevOps not enabled - Button `Enable Auto DevOps` - Only visible to owners/admins - Links directly to CI/CD settings page Auto DevOps section ##### Auto DevOps enabled - Anchor/link `Auto DevOps enabled` - Visible to all - Only acts as an anchor/link to owners/admins - Links directly to CI/CD settings page Auto DevOps section #### Non empty project Everything functions the same, except: >>> ##### Auto DevOps not enabled - Button `Enable Auto DevOps` - Only visible to owners/admins >>> This `Enable Auto DevOps` button will not be visible when the Auto DevOps banner is active/visible. --- Copy to be copied: <details> <h4> The repository for this project is empty </h4> <p> If you already have files you can push them using the command line instructions below. </p> <p> Note that the master branch is automatically protected. Learn more about protected branches </p> <hr> <p> You can automatically build and test your application if you enable Auto DevOps (Beta) for this project. You can automatically deploy it as well, if you add a Kubernetes cluster. </p> <p> Learn more about Auto DevOps (Beta) </p> <hr> <p> Otherwise it is recommended you start with one of the options below. </p> </details> <br> ![localhost_3000_root_empty-project__9_](/uploads/bbf4ce8e02db5502fa75ccf389aaf331/localhost_3000_root_empty-project__9_.png) ![localhost_3000_root_tesssst__2_](/uploads/458db41c612835e1f24778d5d2f3bcf5/localhost_3000_root_tesssst__2_.png)
issue