Skip to content

Commit 99f347f

Browse files
committed
chart: configurable service account
Signed-off-by: Peter Wilcsinszky <[email protected]>
1 parent 1e8434f commit 99f347f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

e2e/charts/logging-operator/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ spec:
7272
tolerations:
7373
{{- toYaml . | nindent 8 }}
7474
{{- end }}
75-
{{- if .Values.rbac.enabled }}
75+
{{- if .Values.rbac.serviceAccountName }}
76+
serviceAccountName: {{ .Values.rbac.serviceAccountName }}
77+
{{- else if .Values.rbac.enabled }}
7678
serviceAccountName: {{ include "logging-operator.fullname" . }}
7779
{{- end }}

e2e/charts/logging-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ rbac:
7070
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
7171
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
7272

73+
# specify service account manually
74+
# serviceAccountName: custom
75+
7376
monitoring:
7477
serviceMonitor:
7578
# -- Create a Prometheus Operator ServiceMonitor object.

0 commit comments

Comments
 (0)