Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,10 @@ helm uninstall temporaltest

## Upgrading

To upgrade your cluster, upgrade your database schema (if the release includes schema changes), and then use `helm upgrade` command to perform a rolling upgrade of your installation.
To upgrade your cluster:

* Upgrade your database schema (if `schema.update.enabled` is `false`)
* Run `helm upgrade` command to perform a rolling upgrade of your installation

Note:
* Not supported: running newer binaries with an older schema.
Expand All @@ -539,6 +542,8 @@ Example:

### Upgrade Schema

**These steps are only required if `schema.update.enabled` is `false`**. If schema update is enabled the Helm chart will do this for you.

Here are examples of commands you can use to upgrade the "default" schema in your "bring your own" Cassandra database.

Upgrade default schema:
Expand Down
7 changes: 4 additions & 3 deletions charts/temporal/templates/server-job.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{{- if or $.Values.schema.createDatabase.enabled $.Values.schema.setup.enabled $.Values.schema.update.enabled }}
{{- $semVer := semver $.Chart.AppVersion }}
{{- $jobName := include "temporal.componentname" (list $ (printf "schema-%d-%d-rev-%d" $semVer.Major $semVer.Minor .Release.Revision)) }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "temporal.componentname" (list $ (printf "schema-%d" .Release.Revision | replace "." "-")) }}
name: {{ $jobName }}
labels:
{{- include "temporal.resourceLabels" (list $ "database" "") | nindent 4 }}
spec:
backoffLimit: {{ $.Values.schema.setup.backoffLimit }}
ttlSecondsAfterFinished: 86400
template:
metadata:
name: {{ include "temporal.componentname" (list $ (printf "schema-%d" .Release.Revision | replace "." "-")) }}
name: {{ $jobName }}
labels:
{{- include "temporal.resourceLabels" (list $ "database" "") | nindent 8 }}
{{- with $.Values.schema.podLabels }}
Expand Down