Provide better error messaging when creating a Kubernetes cluster

Problem to solve

As per https://gitlab.com/gitlab-com/support-forum/issues/3027, there are a lot of users who receive a very vague error message (see below) when creating a Kubernetes cluster on GitLab, without any clue as to how to resolve the issue, creating a frustrating experience.

Further details

When a user attempts to create a k8s cluster, and something goes wrong, they'll see this error.

Something went wrong while creating your Kubernetes cluster on Google Kubernetes Engine
Failed to request to CloudPlatform; Invalid request

This error doesn't provide any context as to why the request is invalid, or why something went wrong in the first place. In the support ticket it could be any number of issues pertaining to zone, machine type, etc.

Proposal

Investigate whether this is the Google Cloud API error message being provided, and if we can somehow provide more information to the user.

What does success look like, and how can we measure that?

User is able to resolve possible issues that may arise when creating a Kubernetes cluster, via detailed error messaging.

Links / references

https://gitlab.com/gitlab-com/support-forum/issues/3027

Assignee Loading
Time tracking Loading