Skip to content

Commit 37978b2

Browse files
authored
feat: add optional custom serviceAccount name for lake, ui and grafana deployments (#368)
1 parent d5580c2 commit 37978b2

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

charts/devlake/templates/deployments.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ spec:
5151
imagePullSecrets:
5252
{{- toYaml . | nindent 8 }}
5353
{{- end }}
54+
{{- with .Values.ui.serviceAccount.name }}
55+
serviceAccountName: {{ . }}
56+
{{- end }}
5457
{{- with .Values.ui.securityContext }}
5558
securityContext:
5659
{{- toYaml . | nindent 8 }}
@@ -155,6 +158,9 @@ spec:
155158
imagePullSecrets:
156159
{{- toYaml . | nindent 8 }}
157160
{{- end }}
161+
{{- with .Values.lake.serviceAccount.name }}
162+
serviceAccountName: {{ . }}
163+
{{- end }}
158164
{{- with .Values.lake.securityContext }}
159165
securityContext:
160166
{{- toYaml . | nindent 8 }}

charts/devlake/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ lake:
265265
# subPath: test_file.yaml
266266
volumeMounts: []
267267

268+
# Name of an existing ServiceAccount to use for the lake pod.
269+
# If empty, the pod uses the namespace default ServiceAccount.
270+
serviceAccount:
271+
name: ""
272+
268273
ui:
269274
replicaCount: 1
270275
revisionHistoryLimit: 10
@@ -343,6 +348,11 @@ ui:
343348

344349
## Side Contaainer Configuration
345350
extraContainers: []
351+
352+
# Name of an existing ServiceAccount to use for the config-ui pod.
353+
# If empty, the pod uses the namespace default ServiceAccount.
354+
serviceAccount:
355+
name: ""
346356
# - name: vault-agent
347357
# image: vault:1.6.2
348358
# args:

0 commit comments

Comments
 (0)