Provide race condition mitigation support
Is your feature request related to a problem? Please describe. I have a setup with company DNS, external-dns operator and corporate ACME server using http01 challenge. When cert-manager does a validation of the http challenge the DNS record is propagated and the self-check works. The corporate acme server is unable to resolve the DNS record (yet) and fails with a 400, leading to a stuck cert-manager, as it gives up immediately.
Describe the solution you'd like I would like to be able to configure a delay before a certificate is acquired as there is no way with the anycast company dns to validate the external-dns propagation for all perspectives in a robust way.
It would also be great to configure a limited retry for this kind of error.
Describe alternatives you've considered Adding an initContainer to the acme solver pod that does a sleep 30, but not options for initcontainers are exposed by the podTemplate settings.
Additional context
Environment details (remove if not applicable):
- Kubernetes version: 1.30
- Cloud-provider/provisioner: on prem
- cert-manager version: 1.18.0
- Install method: helm/argocd
/kind feature
Source: cert-manager/cert-manager