Temporarily use latest image for migration job

- it hasn't been deployed yet, therefore is not in any versioned image
This commit is contained in:
mattwr18 2020-01-30 20:59:56 +01:00
parent 4cbe8a2c5a
commit 8647cba648

View File

@ -10,7 +10,7 @@ metadata:
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
annotations:
"helm.sh/hook": post-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-weight": "5"
"helm.sh/hook-delete-policy": hook-succeeded, hook-failed
spec:
template:
@ -20,7 +20,7 @@ spec:
restartPolicy: Never
containers:
- name: db-migrations-job
image: "{{ .Values.backendImage }}:{{ .Chart.AppVersion }}"
image: "{{ .Values.backendImage }}:latest"
command: ["/bin/sh", "-c", "{{ .Values.dbMigrations }}"]
envFrom:
- configMapRef: