Skip to content

Commit

Permalink
Fixed failed list
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Feb 27, 2024
1 parent d6cb3a5 commit 02205a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/models/external_dns_alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import (

// BuildDNSExternalAliases builds DNSExternalAliases model list
func BuildDNSExternalAliases(ra *radixv1.RadixApplication) []models.DNSExternalAlias {
if ra == nil {
return nil
}
return slice.Reduce(ra.Spec.DNSExternalAlias, make([]models.DNSExternalAlias, 0), func(acc []models.DNSExternalAlias, externalAlias radixv1.ExternalAlias) []models.DNSExternalAlias {
return append(acc, models.DNSExternalAlias{
URL: externalAlias.Alias,
Expand Down

0 comments on commit 02205a8

Please sign in to comment.