Skip to content

Fix cronjob names exceeding max allowed 52 characters#266

Open
maximilianmaihoefner wants to merge 1 commit into
cockroachdb:masterfrom
maximilianmaihoefner:master
Open

Fix cronjob names exceeding max allowed 52 characters#266
maximilianmaihoefner wants to merge 1 commit into
cockroachdb:masterfrom
maximilianmaihoefner:master

Conversation

@maximilianmaihoefner
Copy link
Copy Markdown

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