Skip to content

Commit

Permalink
fix: run migrations at same time than other deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
  • Loading branch information
guilhem-barthes committed Oct 14, 2024
1 parent 763f22d commit ce98eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/substra-backend/templates/job-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
{{ include "substra.labels" . | nindent 4 }}
app.kubernetes.io/name: {{ template "substra.fullname" . }}-migrations
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
spec:
template:
Expand All @@ -31,6 +30,8 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
{{- include "common.waitPostgresqlInitContainer" . | nindent 8 }}
containers:
- name: db-migrations
securityContext:
Expand Down

0 comments on commit ce98eab

Please sign in to comment.