codeamp / panel

CodeAmp Web Application. Built with React.js, GraphQL and Material-UI.
12 stars 7 forks source link

Disallow Long Service Names #251

Closed aballman closed 6 years ago

aballman commented 6 years ago

Describe the bug Kubernetes Deployments have a hard limit of 63 characters as shown in the below error. Update input validation to not allow services that are over that limit

Message: Error creating deployment: Deployment.apps "checkr-providers-national-student-education-verification-request-handler" is invalid: [metadata.labels: Invalid value: "checkr-providers-national-student-education-verification-request-handler": must be no more than 63 characters, spec.selector.matchLabels: Invalid value: "checkr-providers-national-student-education-verification-request-handler": must be no more than 63 characters, spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"checkr-providers-national-student-education-verification-request-handler"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector.]