feat(helm): add imagePullSecrets to jobs

Co-authored-by: Tom OBrien <tom.obrien@ns.nl>
This commit is contained in:
slushysnowman
2021-12-21 06:43:03 +00:00
committed by GitHub
co-authored by Tom OBrien
parent 4a6fd49554
commit bc23324fe7
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.3
version: 0.1.4
# This is the version number of the application being deployed.
# This version number should be incremented each time you make changes to the application.
@@ -25,6 +25,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Never
containers:
- name: post-install-job
@@ -26,6 +26,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Never
containers:
- name: pre-delete-job