Skip to content

Commit

Permalink
Allow to skip database creation (#480)
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Zayash <valioozz@gmail.com>
  • Loading branch information
VLZZZ authored Jun 14, 2024
1 parent 0059f62 commit f6e0e3a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/temporal/templates/server-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
imagePullPolicy: {{ .Values.cassandra.image.pullPolicy }}
command: ['sh', '-c', 'until cqlsh {{ include "cassandra.host" $ }} {{ .Values.cassandra.config.ports.cql }} -e "SHOW VERSION"; do echo waiting for cassandra to start; sleep 1; done;']
{{- end }}
{{- if .Values.schema.createDatabase.enabled }}
{{- range $store := (list "default" "visibility") }}
{{- $storeConfig := index $.Values.server.config.persistence $store }}
{{- if eq (include "temporal.persistence.driver" (list $ $store)) "cassandra" }}
Expand Down Expand Up @@ -112,6 +113,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- else }}
[]
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ web:
containerSecurityContext: {}
securityContext: {}
schema:
createDatabase:
enabled: true
setup:
enabled: true
backoffLimit: 100
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values/values.aurora-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ postgresql:
enabled: false

schema:
createDatabase:
enabled: true
setup:
enabled: false
update:
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values/values.cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ postgresql:
enabled: false

schema:
createDatabase:
enabled: true
setup:
enabled: false
update:
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values/values.mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ postgresql:
enabled: false

schema:
createDatabase:
enabled: true
setup:
enabled: false
update:
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values/values.postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ elasticsearch:
enabled: true

schema:
createDatabase:
enabled: true
setup:
enabled: false
update:
Expand Down

0 comments on commit f6e0e3a

Please sign in to comment.