Skip to content

Commit 3ddf163

Browse files
author
Dexter Lee
authored
feat(k8s): Add ability to add service accounts to setup jobs (#2390)
1 parent fa015c5 commit 3ddf163

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
{{- with .Values.global.hostAliases }}
2121
hostAliases:
2222
{{- toYaml . | nindent 8 }}
23+
{{- end }}
24+
{{- with .Values.elasticsearchSetupJob.serviceAccount }}
25+
serviceAccountName: {{ . }}
2326
{{- end }}
2427
restartPolicy: Never
2528
securityContext:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
{{- with .Values.global.hostAliases }}
2121
hostAliases:
2222
{{- toYaml . | nindent 8 }}
23+
{{- end }}
24+
{{- with .Values.kafkaSetupJob.serviceAccount }}
25+
serviceAccountName: {{ . }}
2326
{{- end }}
2427
restartPolicy: Never
2528
securityContext:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
{{- with .Values.global.hostAliases }}
2121
hostAliases:
2222
{{- toYaml . | nindent 8 }}
23+
{{- end }}
24+
{{- with .Values.mysqlSetupJob.serviceAccount }}
25+
serviceAccountName: {{ . }}
2326
{{- end }}
2427
restartPolicy: Never
2528
securityContext:

0 commit comments

Comments
 (0)