Create a unique setup/update Job name per release version #792
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why?
The helm chart currently creates a job to setup and update the schema named
temporal-schema-{{Helm chart version}}since #564 which is often justtemporal-schema-1. The lifetime of this chart is 1 day, which has two separate impacts:helm upgradedoes not work ifschema.enabledis true #554schema.updateis enabledWhat was changed
Give the schema update job and pod a name including the major-minor version of Temporal. This will allow multiple minor version upgrades to succeed without having to manually remove the job.
Remove the job removal TTL the value of which was debatable, but regardless of value will show sync issues with Helm diff and ArgoCD sync status. As the use of Helm hooks was explicitly removed in Setup for
ci install. #522 to resolve issues with--wait, this provides another way to retain diff/sync. This also means that job update logs are retained and available for life of the helm release.Updated the README to make it clear the manual update steps aren't required if update is enabled.
Checklist
Closes [Bug]
helm upgradedoes not work ifschema.enabledis true #554 [Feature Request] Allow Schema Job ttlSecondsAfterFinished to be configurable #735 Inconsistent diff using Helm diff plugin #636 [Feature Request] Support ArgoCD deployments #709 [Bug] schema job fails #737How was this tested: it's only a name change, helm upgrade did it all 😁
Any docs updates needed?
Updates to the README are included.