From 70ef8933a953dd0f12efda345e1e06a484d31e77 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Thu, 27 Jun 2024 21:13:16 +0200 Subject: [PATCH] feat(deploy): add imagePullSecret to migrations job --- deploy/templates/migration-job.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/templates/migration-job.yaml b/deploy/templates/migration-job.yaml index c0db104..a42826f 100644 --- a/deploy/templates/migration-job.yaml +++ b/deploy/templates/migration-job.yaml @@ -17,6 +17,10 @@ spec: app.kubernetes.io/component: "database-migrations" batch.kubernetes.io/job-name: {{ .Release.Name }}-migrations-{{ now | unixEpoch }} spec: + {{- with .Values.migrations.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: migrations image: "{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag }}"