Skip to content

Commit

Permalink
feat(k8s): Add imagePullSecrets to all K8's jobs (#2671)
Browse files Browse the repository at this point in the history
  • Loading branch information
zack3241 authored Jun 10, 2021
1 parent 91eb3cc commit 18557ed
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ spec:
{{- end }}
{{- with .Values.datahubUpgrade.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
{{- with .Values.datahubUpgrade.extraVolumes }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
{{- end }}
{{- with .Values.datahubUpgrade.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- with .Values.datahubUpgrade.extraVolumes }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
{{- end }}
{{- with .Values.elasticsearchSetupJob.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- with .Values.elasticsearchSetupJob.extraVolumes }}
Expand Down
4 changes: 4 additions & 0 deletions datahub-kubernetes/datahub/templates/kafka-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
securityContext:
runAsUser: 1000
fsGroup: 1000
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- with .Values.global.credentialsAndCertsSecrets }}
- name: datahub-certs-dir
Expand Down
4 changes: 4 additions & 0 deletions datahub-kubernetes/datahub/templates/mysql-setup-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
{{- end }}
{{- with .Values.mysqlSetupJob.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- with .Values.mysqlSetupJob.extraVolumes }}
Expand Down

0 comments on commit 18557ed

Please sign in to comment.