Skip to content

Sanitize schema job names for chart build metadata#902

Merged
robholland merged 1 commit intomainfrom
fix/job-name-plus-char
Apr 29, 2026
Merged

Sanitize schema job names for chart build metadata#902
robholland merged 1 commit intomainfrom
fix/job-name-plus-char

Conversation

@jiechenz
Copy link
Copy Markdown
Contributor

What was changed

Sanitized the schema and namespace job names so chart versions with semver build metadata render valid Kubernetes job names. Added regression tests covering Chart.Version values that contain +.

Why?

When the chart is deployed from a packaged version like 1.1.1+build, that + was included in job names. Kubernetes job names cannot contain +, so installs via FluxCD could fail. This change normalizes that character to -.

Checklist

  1. Closes [Bug] Job name is invalid in k8s #899

  2. How was this tested:
    helm unittest -f tests/server_job_test.yaml -f tests/server_namespace_job_test.yaml .

  3. Any docs updates needed?

n/a

@jiechenz jiechenz requested a review from a team as a code owner April 28, 2026 23:21
@robholland robholland merged commit e074fcf into main Apr 29, 2026
4 checks passed
@robholland robholland deleted the fix/job-name-plus-char branch April 29, 2026 07:00
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.

[Bug] Job name is invalid in k8s

2 participants