diff --git a/charts/devlake/templates/deployments.yaml b/charts/devlake/templates/deployments.yaml index 6702169..a81c8c5 100644 --- a/charts/devlake/templates/deployments.yaml +++ b/charts/devlake/templates/deployments.yaml @@ -51,6 +51,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.ui.serviceAccount.name }} + serviceAccountName: {{ . }} + {{- end }} {{- with .Values.ui.securityContext }} securityContext: {{- toYaml . | nindent 8 }} @@ -155,6 +158,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.lake.serviceAccount.name }} + serviceAccountName: {{ . }} + {{- end }} {{- with .Values.lake.securityContext }} securityContext: {{- toYaml . | nindent 8 }} diff --git a/charts/devlake/values.yaml b/charts/devlake/values.yaml index f8a091c..6c05c52 100644 --- a/charts/devlake/values.yaml +++ b/charts/devlake/values.yaml @@ -265,6 +265,11 @@ lake: # subPath: test_file.yaml volumeMounts: [] + # Name of an existing ServiceAccount to use for the lake pod. + # If empty, the pod uses the namespace default ServiceAccount. + serviceAccount: + name: "" + ui: replicaCount: 1 revisionHistoryLimit: 10 @@ -343,6 +348,11 @@ ui: ## Side Contaainer Configuration extraContainers: [] + + # Name of an existing ServiceAccount to use for the config-ui pod. + # If empty, the pod uses the namespace default ServiceAccount. + serviceAccount: + name: "" # - name: vault-agent # image: vault:1.6.2 # args: