Fix cert-manager recursive-nameserver ControllerConfiguration field #347
Reference in New Issue
Block a user
Delete Branch "benvin/certmanager-fix-recursive-ns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
acmeDNS01(failed to load config file ... strict decoding error: unknown field "acmeDNS01"), so/var/cert-manager/config/config.yamlfails to load and the controller never starts. The rollout is stuck with only the old pod running.acmeDNS01, but the field in thecontroller.config.cert-manager.io/v1alpha1schema isacmeDNS01Config(ACMEDNS01Config, withrecursiveNameservers/recursiveNameserversOnly). The recursive-ns settings belong in the config file, notextraArgs; the CLI flags feed the same struct but the chart already renders a--configControllerConfiguration, so the correct fix is the correct field name.How
config:blockacmeDNS01toacmeDNS01Config, keepingrecursiveNameservers(8.8.8.8:53,1.1.1.1:53) andrecursiveNameserversOnly: trueso DNS-01 resolution and self-checks still use the public DNS view for the split-horizon delegation.Rendered
kustomize build --enable-helmconfirms the ConfigMapconfig.yamlnow carries a validacmeDNS01Configblock and no longer contains the invalidacmeDNS01; the cert-manager overlay is kubeconform-clean (55 valid, 0 invalid).