apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: ocm-agent
  namespace: test-ocm-agent-operator
rules:
  - apiGroups:
      - ""
    resources:
      - services
      - services/finalizers
      - configmaps
      - secrets
    verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
  - apiGroups:
      - ocmagent.managed.openshift.io
    resources:
      - managednotifications
      - managednotifications/status 
    verbs:
      - get
      - list
      - watch
      - patch
      - update
