zachomedia / cert-manager-webhook-pdns

A PowerDNS webhook for cert-manager
MIT License
59 stars 35 forks source link

Usage inside of cert-manager namespace #48

Open max312 opened 10 months ago

max312 commented 10 months ago

I am unable to use this with "cert-manager" as namespace. When inside cert-manager namespace, i get "Unable to handle request" and the webhook-pdns doesn't have any logging?

Also can you clarify some things in the installation process?

  1. is it possible to change the namespace?
  2. how can i change the "groupname" while using helm? 3.I think it is easier to supply a "kubectl apply -f". as this is a relatively small addition to cert-manager and you might save helm overhead?
zachomedia commented 10 months ago

I should work within the cert-manager namespace. I can take a look, but to ensure we're about the same setup - what version of cert-manager and what version of Kubernetes are you using?

For your questions:

  1. You can install the webhook into any namespace (helm -n $NAMESPACE install ...). Just make sure the helm values point to the right namesapce for your cert-manager installation (https://github.com/zachomedia/cert-manager-webhook-pdns/blob/6e0531ae4656988ab650061624be10b360568d82/deploy/cert-manager-webhook-pdns/values.yaml#L11).
  2. You can override the group name by overriding the default value (https://github.com/zachomedia/cert-manager-webhook-pdns/blob/6e0531ae4656988ab650061624be10b360568d82/deploy/cert-manager-webhook-pdns/values.yaml#L9)
  3. This was originally based on the https://github.com/cert-manager/webhook-example which had the helm chart, and due to the customization options, I will continue to only offer the helm chart.

Please let me know if you have any additional questions! Thanks