zachomedia / cert-manager-webhook-pdns

A PowerDNS webhook for cert-manager
MIT License
57 stars 33 forks source link

Fix access to flowcontrol APIs #7

Closed FedericoHeichou closed 2 years ago

FedericoHeichou commented 2 years ago

Hello, I have a rbac in my k8s, and the cert-manager-webhook-pdns keeps logging something like: Cannot list resource "prioritylevelconfigurations" and "flowschemas" in API group "flowcontrol.apiserver.k8s.io"

I added in the ClusterRole cert-manager-webhook-pdns

  - apiGroups:
      - 'flowcontrol.apiserver.k8s.io'
    resources:
      - 'flowschemas'
      - 'prioritylevelconfigurations'
    verbs:
      - 'watch'
      - 'list'

And now it works.

PS: I don't know if is ok to edit this file only, I didn't check the full repo

zachomedia commented 2 years ago

Thank you!