{{- if .Values.rbac.enabled }} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "logging-operator.fullname" . }} namespace: {{ include "logging-operator.namespace" . }} labels: app.kubernetes.io/name: {{ include "logging-operator.name" . }} helm.sh/chart: {{ include "logging-operator.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }}