Enable service accounts for pipelines chart

Follow up from https://github.com/open-webui/helm-charts/pull/110
This commit is contained in:
Alex Nederlof 2024-11-28 21:20:30 +01:00
parent 357d167f76
commit f539153797
No known key found for this signature in database
3 changed files with 21 additions and 1 deletions

View File

@ -27,7 +27,11 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
enableServiceLinks: false
automountServiceAccountToken: false
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken | default false }}
{{- if .Values.serviceAccount.enable }}
serviceAccountName: {{ .Values.serviceAccount.name | default (include "pipelines.name" .) }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- with .Values.image }}

View File

@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.enable }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.name | default (include "pipelines.name" .) }}
labels:
{{- include "pipelines.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@ -38,6 +38,10 @@ persistence:
selector: {}
annotations: {}
serviceAccount:
enable: true
automountServiceAccountToken: false
# -- Node labels for pod assignment.
nodeSelector: {}