Skip to content

Commit 18557ed

Browse files
authored
feat(k8s): Add imagePullSecrets to all K8's jobs (datahub-project#2671)
1 parent 91eb3cc commit 18557ed

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

datahub-kubernetes/datahub/templates/datahub-upgrade/datahub-cleanup-job-template.yml

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ spec:
2525
{{- end }}
2626
{{- with .Values.datahubUpgrade.serviceAccount }}
2727
serviceAccountName: {{ . }}
28+
{{- end }}
29+
{{- with .Values.imagePullSecrets }}
30+
imagePullSecrets:
31+
{{- toYaml . | nindent 12 }}
2832
{{- end }}
2933
volumes:
3034
{{- with .Values.datahubUpgrade.extraVolumes }}

datahub-kubernetes/datahub/templates/datahub-upgrade/datahub-upgrade-job.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
{{- end }}
2424
{{- with .Values.datahubUpgrade.serviceAccount }}
2525
serviceAccountName: {{ . }}
26+
{{- end }}
27+
{{- with .Values.imagePullSecrets }}
28+
imagePullSecrets:
29+
{{- toYaml . | nindent 8 }}
2630
{{- end }}
2731
volumes:
2832
{{- with .Values.datahubUpgrade.extraVolumes }}

datahub-kubernetes/datahub/templates/elasticsearch-setup-job.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
{{- end }}
2424
{{- with .Values.elasticsearchSetupJob.serviceAccount }}
2525
serviceAccountName: {{ . }}
26+
{{- end }}
27+
{{- with .Values.imagePullSecrets }}
28+
imagePullSecrets:
29+
{{- toYaml . | nindent 8 }}
2630
{{- end }}
2731
volumes:
2832
{{- with .Values.elasticsearchSetupJob.extraVolumes }}

datahub-kubernetes/datahub/templates/kafka-setup-job.yml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
securityContext:
2929
runAsUser: 1000
3030
fsGroup: 1000
31+
{{- with .Values.imagePullSecrets }}
32+
imagePullSecrets:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3135
volumes:
3236
{{- with .Values.global.credentialsAndCertsSecrets }}
3337
- name: datahub-certs-dir

datahub-kubernetes/datahub/templates/mysql-setup-job.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ spec:
2323
{{- end }}
2424
{{- with .Values.mysqlSetupJob.serviceAccount }}
2525
serviceAccountName: {{ . }}
26+
{{- end }}
27+
{{- with .Values.imagePullSecrets }}
28+
imagePullSecrets:
29+
{{- toYaml . | nindent 8 }}
2630
{{- end }}
2731
volumes:
2832
{{- with .Values.mysqlSetupJob.extraVolumes }}

0 commit comments

Comments
 (0)