Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cronjob names exceeding max allowed 52 characters #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maximilianmaihoefner
Copy link

When a release with a too long name get created it will currently fail with an error message:

Error: UPGRADE FAILED: failed to create resource: CronJob.batch "<releaseName>-rotate-self-sign-client" is invalid: metadata.name: Invalid value: "<releaseName>-rotate-self-sign-client": must be no more than 52 characters

This PR resolves this issue by truncating the job names earlier then what was already configured in the _helpers.tpl.

Another possible solution would be to truncate the release name instead of the job name, this might be the better approach but will also be a breaking change for people who already have installed the chart with a long release name. This is why I choose to truncate the job name instead.

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