diff --git a/pkg/apis/deployment/externaldns.go b/pkg/apis/deployment/externaldns.go index 1b003413c..3638c6137 100644 --- a/pkg/apis/deployment/externaldns.go +++ b/pkg/apis/deployment/externaldns.go @@ -43,9 +43,7 @@ func (deploy *Deployment) syncExternalDnsResources() error { if err := deploy.garbageCollectExternalDnsCertificate(externalDns); err != nil { return err } - } - if !externalDns.UseCertificateAutomation { secretName := utils.GetExternalDnsTlsSecretName(externalDns) if err := deploy.createOrUpdateExternalDnsTlsSecret(externalDns, secretName); err != nil { return err