From 69fa233cb2afefddad5baca3bdf84f7b87a32493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Tue, 27 Feb 2024 09:40:28 +0100 Subject: [PATCH] remove duplicate if statement --- pkg/apis/deployment/externaldns.go | 2 -- 1 file changed, 2 deletions(-) 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