From 8647cba64887accdfc5656617825e2ff7134412b Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 30 Jan 2020 20:59:56 +0100 Subject: [PATCH] Temporarily use latest image for migration job - it hasn't been deployed yet, therefore is not in any versioned image --- .../human-connection/templates/jobs/job-db-migration.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/helm/human-connection/templates/jobs/job-db-migration.yaml b/deployment/helm/human-connection/templates/jobs/job-db-migration.yaml index 81fd92e13..8a924f44b 100644 --- a/deployment/helm/human-connection/templates/jobs/job-db-migration.yaml +++ b/deployment/helm/human-connection/templates/jobs/job-db-migration.yaml @@ -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: