| {{- if .Values.clusterOperator.rbac.create }} |
| apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} |
| labels: {{- include "common.labels.standard" . | nindent 4 }} |
| app.kubernetes.io/component: rabbitmq-operator |
| app.kubernetes.io/part-of: rabbitmq |
| {{- if .Values.commonLabels }} |
| {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} |
| name: {{ template "rmqco.clusterOperator.fullname" . }} |
| {{- if .Values.commonAnnotations }} |
| annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} |
| apiGroup: rbac.authorization.k8s.io |
| name: {{ template "rmqco.clusterOperator.fullname" . }} |
| name: {{ template "rmqco.clusterOperator.serviceAccountName" . }} |
| namespace: {{ include "common.names.namespace" . | quote }} |