{{- if ( and .Values.pepServer.serviceAccount.enabled ( not .Values.pepServer.serviceAccount.preexisting ) ) -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "pep-server.name" . }}-role rules: [] {{- end }}