kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: apicurito-operator
  namespace: REPLACE_NAMESPACE
rules:
- apiGroups:
  - "*"
  resources:
  - "*"
  verbs:
  - "*"
- apiGroups:
  - ""
  resources:
  - pods
  - services
  - endpoints
  - persistentvolumeclaims
  - events
  - configmaps
  - secrets
  verbs:
  - "*"
- apiGroups:
  - ""
  resources:
  - namespaces
  verbs:
  - get
- apiGroups:
  - apps
  resources:
  - deployments
  - daemonsets
  - replicasets
  - statefulsets
  verbs:
  - "*"

---

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: default-account-apicurito-operator
subjects:
- kind: ServiceAccount
  name: default
  namespace: REPLACE_NAMESPACE
roleRef:
  kind: Role
  name: apicurito-operator
  apiGroup: rbac.authorization.k8s.io
