apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
    labels:
        app: cert-manager
        app.kubernetes.io/component: controller
        app.kubernetes.io/instance: cert-manager
        app.kubernetes.io/managed-by: Helm
        app.kubernetes.io/name: cert-manager
        helm.sh/chart: cert-manager-v1.4.0
    name: cert-manager-controller-orders
rules:
    - apiGroups:
        - acme.cert-manager.io
      resources:
        - orders
        - orders/status
      verbs:
        - update
    - apiGroups:
        - acme.cert-manager.io
      resources:
        - orders
        - challenges
      verbs:
        - get
        - list
        - watch
    - apiGroups:
        - cert-manager.io
      resources:
        - clusterissuers
        - issuers
      verbs:
        - get
        - list
        - watch
    - apiGroups:
        - acme.cert-manager.io
      resources:
        - challenges
      verbs:
        - create
        - delete
    - apiGroups:
        - acme.cert-manager.io
      resources:
        - orders/finalizers
      verbs:
        - update
    - apiGroups:
        - ""
      resources:
        - secrets
      verbs:
        - get
        - list
        - watch
    - apiGroups:
        - ""
      resources:
        - events
      verbs:
        - create
        - patch