Error validation for Kubernetes agent
Scope
This issue aims to specify and design the errors that can occur in the UI in the "Connect cluster with the GitLab Kubernetes agent" workflow. Based our team conversations the main part of the flow that os error prone is around the agent name and the configuration directory. The errors that can occur in my understanding are:
- Agent name is not valid (and the agent config directory name as a consequence is not valid).
- Agent configuration directory does not exist.
- The Agent name (in the UI) does not match the Agent configuration directory name.
- An Agent with <agent_name>
- No agent configuration file is found within the Agent configuration directory.
Proposal
Below I have created a flow chart to propose the sequence of validation and a first draft for the error messages to display to the user.
Edited by Maria Vrachni