-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
What do you want to happen?
When using cert-manager for webhook certificate generation, kubebuilder generates a CA cert and a leaf cert from that CA certificate. Both the cert and the CA cert has same validity period (3 months) and happens around the same time.
When cert-manager renews leaf cert before the CA cert, API server can not talk to the webhook because the caBundle of the webhook is configured from the CA cert.
I have tried using the leaf cert for webhook's caBundle configuration, but it causes issues when CA cert expires as cert-manager allows leaf certs to have an expiry date beyond CA certs expiry date (cert-manager/cert-manager#5864).
So only solution I have found is to use a self signed cert and using it to configure the caBundle of the webhook.
Is it possible to change the default manifests to that?
Extra Labels
No response