The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.

Solution Verified - Updated -

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.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content