Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed Feb 27, 2024
1 parent 6700b07 commit 05b44c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/apis/deployment/externaldns.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (deploy *Deployment) syncExternalDnsResources() error {
}

var secretNames []string
externalDnsList := deploy.getDistinctExternalDns()
externalDnsList := deploy.getExternalDnsFromAllComponents()

for _, externalDns := range externalDnsList {
if externalDns.UseCertificateAutomation {
Expand Down Expand Up @@ -71,7 +71,7 @@ func (deploy *Deployment) garbageCollectExternalDnsSecretsNoLongerInSpec() error
return err
}

externalDnsAliases := deploy.getDistinctExternalDns()
externalDnsAliases := deploy.getExternalDnsFromAllComponents()
for _, secret := range secrets.Items {
fqdn, ok := secret.Labels[kube.RadixExternalAliasFQDNLabel]
if !ok {
Expand All @@ -96,7 +96,7 @@ func (deploy *Deployment) garbageCollectExternalDnsCertificatesNoLongerInSpec()
return err
}

externalDnsAliases := deploy.getDistinctExternalDns()
externalDnsAliases := deploy.getExternalDnsFromAllComponents()
for _, cert := range certificates.Items {
fqdn, ok := cert.Labels[kube.RadixExternalAliasFQDNLabel]
if !ok {
Expand Down Expand Up @@ -232,7 +232,7 @@ func (deploy *Deployment) createOrUpdateExternalDnsTlsSecret(externalDns radixv1
return nil
}

func (deploy *Deployment) getDistinctExternalDns() []radixv1.RadixDeployExternalDNS {
func (deploy *Deployment) getExternalDnsFromAllComponents() []radixv1.RadixDeployExternalDNS {
var externalDns []radixv1.RadixDeployExternalDNS

for _, comp := range deploy.radixDeployment.Spec.Components {
Expand Down

0 comments on commit 05b44c7

Please sign in to comment.