feat(deploy): add imagePullSecret to migrations job
This commit is contained in:
parent
31a2fa9c9d
commit
70ef8933a9
1 changed files with 4 additions and 0 deletions
|
|
@ -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 }}"
|
||||||
|
|
|
||||||
Reference in a new issue