apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  labels:
    app.kubernetes.io/managed-by: karavel
    app.kubernetes.io/name: dex-operator
    app.kubernetes.io/part-of: dex
    app.kubernetes.io/version: 2.30.0
    karavel.io/component-name: dex
    karavel.io/component-version: 0.1.0-SNAPSHOT
  name: dex-operator-leader-election
  namespace: dex
rules:
- apiGroups:
  - ""
  - coordination.k8s.io
  resources:
  - configmaps
  - leases
  verbs:
  - get
  - list
  - watch
  - create
  - update
  - patch
  - delete
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - create
  - patch
