{{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "kafka.serviceAccountName" . }} labels: {{- include "kafka.labels" . | nindent 4 }} rules: - apiGroups: - "" resources: - services verbs: - get - list - watch {{- end -}}