Skip to content

Commit

Permalink
PS-696 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Nov 26, 2024
1 parent 7b6ccfc commit 11280ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/phrasea/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.1-rc4
version: 2.0.1-rc5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
2 changes: 2 additions & 0 deletions charts/phrasea/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ env:
value: {{ required "Missing mailer.dsn value" .Values.mailer.dsn | quote }}
- name: AUTH_DB_NAME
value: {{ .Values.auth.database.name | quote }}
- name: CONFIGURATOR_DB_NAME
value: {{ .Values.configurator.database.name | quote }}
{{- range .Values._internal.services }}
{{- $appName := . }}
{{- with (index $.Values $appName) }}
Expand Down
5 changes: 3 additions & 2 deletions charts/phrasea/templates/configurator/migrate-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ $appName }}-setup
name: {{ $appName }}-migrate
annotations:
"helm.sh/hook": post-upgrade
"helm.sh/hook": pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
template:
Expand All @@ -21,6 +21,7 @@ spec:
containers:
- {{- include "configurator.containerSpecs" $ | nindent 8 }}
args: ["bin/migrate.sh"]
terminationMessagePolicy: FallbackToLogsOnError
restartPolicy: Never
backoffLimit: 0
---
Expand Down

0 comments on commit 11280ea

Please sign in to comment.