Show cluster error when namespace/svc account missing
Show error state in cluster list page when project does not have corresponding namespace/service account
Problem to solve
Due to errors, a project may not have its restricted service account / project namespace created for the Kubernetes cluster. This will cause deployments to fail as KUBE_TOKEN
will be empty
Target audience
-
Sasha, Software Developer, https://design.gitlab.com/research/personas#persona-sasha /label Persona: Software developer
-
Devon, DevOps Engineer, https://design.gitlab.com/research/personas#persona-devon /label Persona: DevOps Engineer
Further details
Solution
When a namespace or svc account is missing, the preparing stage will not successfully complete. The job will error and we will show the following:
Illustration: https://gitlab-org.gitlab.io/gitlab-svgs/illustrations?q=illustrations%2Fpipelines_failed.svg
The user should be able to retry the job, which will try to recreate the needed sources.
We'll create follow-up issues as we find relevant to-do's from the error messages.
Previous proposal
### Proposal- Show error state in
group clusterpipelines page when on a project that did not create corresponding namespace/svc account
What does success look like, and how can we measure that?
Increased feature usage, measured by existing cluster metrics