1
0
Fork 0

feat(deploy): add imagePullSecret to migrations job

This commit is contained in:
Vojtěch Mareš 2024-06-27 21:13:16 +02:00
parent 31a2fa9c9d
commit 70ef8933a9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -17,6 +17,10 @@ spec:
app.kubernetes.io/component: "database-migrations" app.kubernetes.io/component: "database-migrations"
batch.kubernetes.io/job-name: {{ .Release.Name }}-migrations-{{ now | unixEpoch }} batch.kubernetes.io/job-name: {{ .Release.Name }}-migrations-{{ now | unixEpoch }}
spec: spec:
{{- with .Values.migrations.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers: containers:
- name: migrations - name: migrations
image: "{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag }}" image: "{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag }}"