apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: enmasse.io:enmasse-operator
  labels:
    app: enmasse
rules:
  - apiGroups: [ "" ]
    resources: [ "events" ]
    verbs: [ "get", "list", "watch", "update", "create", "patch", "delete", "deletecollection" ]
  - apiGroups: [ "" ]
    resources: [ "namespaces" ]
    verbs: [ "get", "list", "watch" ]
  - apiGroups: [ "oauth.openshift.io" ]
    resources: [ "oauthclients" ]
    verbs: [ "create", "get", "update", "list", "watch" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messagingplans", "messagingplans/finalizers", "messagingplans/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messagingaddressplans", "messagingaddressplans/finalizers", "messagingaddressplans/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messagingaddresses", "messagingaddresses/finalizers", "messagingaddresses/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messagingendpoints", "messagingendpoints/finalizers", "messagingendpoints/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messagingprojects", "messagingprojects/finalizers", "messagingprojects/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "enmasse.io" ]
    resources: [ "messaginginfrastructures", "messaginginfrastructures/finalizers", "messaginginfrastructures/status" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "iot.enmasse.io" ]
    resources: [ "iottenants", "iottenants/finalizers", "iottenants/status" ]
    verbs: [ "get", "list", "watch", "update", "create", "patch", "delete" ]
  - apiGroups: [ "monitoring.coreos.com" ]
    resources: [ "prometheusrules", "servicemonitors" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "integreatly.org" ]
    resources: [ "grafanadashboards", "grafanadashboards/finalizers" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
  - apiGroups: [ "console.openshift.io" ]
    resources: [ "consolelinks" ]
    verbs: [ "create", "update", "patch", "get", "list", "watch", "delete" ]
