"Invalid value" error when start Pipelines from web console and username has special character like "@" in OpenShift 4

Solution Verified - Updated -

Issue

  • Why am I unable to start pipelines from web console when the username is in the form of email address?
  • When starting a pipeline from OpenShift Container Platform web console with the user that has a special character, like @, in the name will result in this error:

    Error "Invalid value: "username@domain.com": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')" for field "metadata.labels".
    

Environment

  • OpenShift Container Platform (OCP) 4.5
  • OpenShift Pipelines Operator 1.0.1

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