Restrict allowed characters for Kubernetes Agent's name
Enforce GitLab Kubernetes Agent's name restrictions defined in https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/blob/master/doc/identity_and_auth.md#agent-identity-and-name
FYI @tkuah
Proposal
Enforce name that conforms to https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names, which should be provided by existing regex:
/\A[a-z0-9]([-a-z0-9]*[a-z0-9])?\z/
Also we also need to validate that it contains at most 63 characters
Edited by Thong Kuah