The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.
Issue
-
The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.
-
Service name limit is at most 24 chars so we shall check the service name in the template
Eg-https://github.com/openshift/training/blob/master/beta4/eap6-basic-sti.json#L117
"name": "${APPLICATION_NAME}-https-service", -
Here we shall allow ${APPLICATION_NAME} to be of 10 chars only as already https-service is of 14 chars.
-
From the command line you will get an error.
Failed to create eap6-basic-sti in project xyz-demo1-with-eap6
Cannot create Service x2345678901-https-service. Service "x2345678901-https-service" is invalid: metadata.name: invalid value 'x2345678901-https-service': must be a DNS 952 label (at most 24 characters, matching regex [a-z]([-a-z0-9]*[a-z0-9])?): e.g. "my-name"
Environment
- Openshift Enterprise 3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
