Allow user to retry failed cluster creation
Problem to solve
When creating a new Kubernetes cluster via the Gitlab cluster creation GUI, if something goes wrong with the cluster creation on the provider side, e.g. didn't include the right AWS policy, the user has to add the missing credentials in AWS and then re-enter all the cluster information on the Gitlab side. In addition to frustrating the user by making them repeat the same information, this creates an additional problem because a failed cluster takes over unique resources.
For example, I try making a cluster with the * environment scope. It fails because I'm missing a policy. I add the required policy in the AWS console, then go back to Gitlab to try adding the cluster again. I enter in all the same information, hit save, then receive the error "Cannot add duplicated environment scope" because even though cluster creation failed the first time, the environment scope was still used. I go to the failed cluster and remove the cluster's integration and resources. Then I go back to the cluster list, click "Add a new cluster" again, and enter the same information for the third time. The cluster is created successfully now.
Intended users
User experience goal
The user should be able to retry cluster creation after modifying information on the provider side, preventing them from having to enter in the same cluster information possibly three times.
Proposal
We could add a "Retry" button to the error message or somewhere else on the failed cluster's page to let the user submit all the same information.
Or possibly something like this, where we let the user either "Retry" creation with all the same information or "Start over" and de-allocate the unique resources-- currently, failed clusters still show up on the cluster list page and still occupy unique resources until the user specifically goes in and deletes them.
I'm not married to either of these ideas so if there's a more intuitive placement or if this feature introduces unwanted behaviors feel free to suggest alternative ideas!

