Skip to content

fix(orchestrator): lowercase and truncate DB creation Job name for compliance [RHDHBUGS-3329]#466

Open
rm3l wants to merge 1 commit into
redhat-developer:mainfrom
rm3l:RHDHBUGS-3329--e2e-1-11-14-ci-1-11-14-ci-chart-uppercase-ci-breaks-kubernetes-naming-rules
Open

fix(orchestrator): lowercase and truncate DB creation Job name for compliance [RHDHBUGS-3329]#466
rm3l wants to merge 1 commit into
redhat-developer:mainfrom
rm3l:RHDHBUGS-3329--e2e-1-11-14-ci-1-11-14-ci-chart-uppercase-ci-breaks-kubernetes-naming-rules

Conversation

@rm3l

@rm3l rm3l commented Jul 8, 2026

Copy link
Copy Markdown
Member

Description of the change

The versioned Job name introduced in e767157 (PR #427) embedded .Chart.Version into the orchestrator DB creation Job name without sanitizing it. Chart versions containing uppercase characters (e.g., 1.10-147-CI) produce a Job name like redhat-developer-hub-create-sf-db-1-10-147-CI, which violates Kubernetes RFC 1123 subdomain naming rules.

Cherry-picked from release-1.10 PR #465.

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

  • For each Chart updated, version bumped in the corresponding Chart.yaml according to Semantic Versioning.
  • For each Chart updated, variables are documented in the values.yaml and added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Run pre-commit run --all-files to run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.
  • JSON Schema template updated and re-generated the raw schema via the pre-commit hook.
  • Tests pass using the Chart Testing tool and the ct lint command.
  • If you updated the orchestrator-infra chart, make sure the versions of the Knative CRDs are aligned with the versions of the CRDs installed by the OpenShift Serverless operators declared in the values.yaml file. See Installing Knative Eventing and Knative Serving CRDs for more details.

…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
@rm3l rm3l requested a review from a team as a code owner July 8, 2026 14:03
@openshift-ci openshift-ci Bot requested review from gazarenkov and zdrapela July 8, 2026 14:04
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

@rm3l rm3l changed the title fix(orchestrator): lowercase and truncate DB creation Job name for RFC 1123 compliance fix(orchestrator): lowercase and truncate DB creation Job name for RFC 1123 compliance [RHDHBUGS-3329] Jul 8, 2026
@rm3l rm3l changed the title fix(orchestrator): lowercase and truncate DB creation Job name for RFC 1123 compliance [RHDHBUGS-3329] fix(orchestrator): lowercase and truncate DB creation Job name for compliance [RHDHBUGS-3329] Jul 8, 2026
rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Jul 9, 2026
Replicate the fix from PR redhat-developer#466 (backstage chart) into the rhdh
chart. Chart versions with uppercase characters (e.g. CI builds)
produced Job names violating RFC 1123 subdomain rules.

Add rhdh.orchestrator.dbJobName helper that lowercases the name
and truncates to 63 chars while preserving the version suffix.

Ref: redhat-developer#466

Assisted-by: Claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant