Support git repositories with names containing underscores and other characters not compliant with RFC-1123 #21750
Labels
area/dashboard
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
sprint/current
Describe the bug
Workspace startup is failing for repos like https://github.com/kamlendu1982/tower_engin
Che version
7.54@latest
Steps to reproduce
ERROR:
Failed to create a new workspace from the devfile, reason: Failed to create a new workspace. Unable to create devworkspace: DevWorkspace.workspace.devfile.io "tower_engin" is invalid: metadata.name: Invalid value: "tower_engin": 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]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
Expected behavior
dashboard sanitizes the dw name and workspace starts without problems
Runtime
OpenShift
Screenshots
Installation method
OperatorHub
Environment
Amazon
Eclipse Che Logs
Additional context
Reproducible on the dogfooding
The text was updated successfully, but these errors were encountered: