Skip to content

Commit

Permalink
Allow using custom service account
Browse files Browse the repository at this point in the history
  • Loading branch information
matkob committed Oct 28, 2024
1 parent 46030c2 commit d6987b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/memgraph/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ spec:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.serviceAccount.create }}
serviceAccount: {{ include "memgraph.serviceAccountName" . }}
{{- else if .Values.serviceAccount.name }}
serviceAccount: {{ .Values.serviceAccount.name | quote }}
{{- end }}
initContainers:
- name: init-volume-mounts
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
1 change: 1 addition & 0 deletions charts/memgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ resources: {}

serviceAccount:
# Specifies whether a service account should be created
# If set to false and the name is provided, this service account must exist
create: true
# Annotations to add to the service account
annotations: {}
Expand Down

0 comments on commit d6987b1

Please sign in to comment.