{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  labels: {{ include "eventrouter.labels" . | indent 4 }}
  name: {{ template "eventrouter.serviceAccountName" . }}
  namespace: {{ .Release.Namespace }}
{{- end }}
