[release-1.10] fix(orchestrator): lowercase and truncate DB creation Job name for compliance [RHDHBUGS-3450]#465
Conversation
…C 1123 compliance The versioned Job name introduced in e767157 did not sanitize the chart version, so versions containing uppercase characters (e.g. 1.10-147-CI) produced an invalid Kubernetes resource name. Add a helper that lowercases the full name and truncates the prefix to keep the total within 63 characters while preserving the version suffix. Ref: RHDHBUGS-3450 Assisted-by: Claude
|
|
/hold This is for 1.10.3 as it only affects pre-release/CI builds of the downstream chart. On hold until 1.10.2 is out. |
PR Summary by QodoFix orchestrator DB creation Job name for RFC 1123 compliance
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
|
/hold cancel |



Description of the change
The versioned Job name introduced in e767157 (PR #427) embedded
.Chart.Versioninto the orchestrator DB creation Job name without sanitizing it. Chart versions containing uppercase characters (e.g.,1.10-147-CI) produce a Job name likeredhat-developer-hub-create-sf-db-1-10-147-CI, which violates Kubernetes RFC 1123 subdomain naming rules.Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
A CI chart version should work properly once this is merged. Also, installing a very long release name should truncate to 63 chars with version suffix preserved.
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.