Skip to content

Commit

Permalink
remove duplicate if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed Feb 27, 2024
1 parent cd40f15 commit 69fa233
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/apis/deployment/externaldns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69fa233

Please sign in to comment.