apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  labels:
    app: certmanager
    app.kubernetes.io/component: controller
    app.kubernetes.io/instance: RELEASE-NAME
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: certmanager
    app.kubernetes.io/version: v1.5.4
    helm.sh/chart: certmanager-v1.5.4
  name: RELEASE-NAME-certmanager:leaderelection
  namespace: kube-system
rules:
- apiGroups:
  - ""
  resourceNames:
  - cert-manager-controller
  resources:
  - configmaps
  verbs:
  - get
  - update
  - patch
- apiGroups:
  - ""
  resources:
  - configmaps
  verbs:
  - create
- apiGroups:
  - coordination.k8s.io
  resourceNames:
  - cert-manager-controller
  resources:
  - leases
  verbs:
  - get
  - update
  - patch
- apiGroups:
  - coordination.k8s.io
  resources:
  - leases
  verbs:
  - create
