joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
316 stars 87 forks source link

Support configmap and mutatingwebhookconfiguration/validatingwebhookconfiguration when it comes to admission webhook #115

Closed lianghao208 closed 2 years ago

lianghao208 commented 2 years ago

Our k8s clusters use admission webhooks in production environment, some of the webhooks mount their certificate files from configmap, and the ca certificate will be in Mutatingwebhookconfiguration and Validatingwebhookconfiguration object. I wonder if cert-exporter will take this senario into account. If so, I can submit PRs to add some supports.

joe-elliott commented 2 years ago

I'm not familiar with those objects, but if you walk me through the changes I'll take a PR.