monokle: Convert resource names to lowercase to avoid InvalidValue error
Describe the enhancement you’d like to see
When I try to deploy a resource using the resource template and provide a name that has uppercase characters, it fails to deploy with the error:
Invalid value: "BasicDeployment": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
It would be better if we could either:
- force the user to enter the name only in lowercase alphanumeric characters on the template creation screen - preferred
- internally convert the user input to lowercase
That way, we can avoid this error and the user doesn’t have to rename the deployments to deploy them.
Additional context
I get the following error when I’m trying to deploy a deployment that has uppercase characters.
Title: Applying BasicDeployment to cluster kind-kind failed Description: The Deployment “BasicDeployment” is invalid:
- metadata.name: Invalid value: “BasicDeployment”: a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, ‘-’ or ‘.’, and must start and end with an alphanumeric character (e.g. ‘example.com’, regex used for validation is ‘a-z0-9?(.a-z0-9?)*’)
- spec.template.spec.containers[0].name: Invalid value: “BasicDeployment”: a lowercase RFC 1123 label must consist of lower case alphanumeric characters or ‘-’, and must start and end with an alphanumeric character (e.g. ‘my-name’, or ‘123-abc’, regex used for validation is ‘a-z0-9?’)

About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 30 (27 by maintainers)
The Read more now looks like this @julioramosest @olensmar :
@ayushgml Thanks for the explanation - makes all sense. It’s perfectly good to go for me!
there you go the icon @ayushgml
looks great to me @ayushgml - @julioramosest wdyt?
Thanks @olensmar I did that and the result looks like this:
I have added validation for:
The “Read more” links to these docs.
Thank you @olensmar! Yes let’s look into this. First, I will try to reproduce this using a template. If I face any issue regarding the reproducing this issue then I’ll post my doubts here.
Thanks for submitting this issue with detailed information! We will include this in our upcoming release which should be arriving next week.