Files
charts/bitnami/rabbitmq-cluster-operator/templates/cluster-operator/clusterrole.yaml
Javier J. Salmerón-García a9b367272e [bitnami/rabbitmq-cluster-operator] MAJOR: Add rabbitmq-messaging-topology-operator and rabbitmq-default-user-credential-updater (#7965)
* [bitnami/rabbitmq-cluster-operator] MAJOR: Add rabbitmq-messaging-topology-operator and rabbitmq-default-user-credential-updater

* Applied requested changes

* Fix incorrect references

* [bitnami/rabbitmq-cluster-operator] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2021-11-04 17:10:30 +01:00

153 lines
2.7 KiB
YAML

{{- if .Values.clusterOperator.rbac.create }}
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRole
metadata:
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 }}
{{- end }}
name: {{ template "rmqco.clusterOperator.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- endpoints
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- get
- patch
- apiGroups:
- ""
resources:
- persistentvolumeclaims
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- pods/exec
verbs:
- create
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- rabbitmq.com
resources:
- rabbitmqclusters
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- rabbitmq.com
resources:
- rabbitmqclusters/finalizers
verbs:
- update
- apiGroups:
- rabbitmq.com
resources:
- rabbitmqclusters/status
verbs:
- get
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
verbs:
- create
- get
- list
- update
- watch
{{- end }}