mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-20 08:21:00 +02:00
correct rejection of azure-private-dns-zones not matching filters.
This commit is contained in:
parent
432d0696a3
commit
6ff3e03e60
@ -175,19 +175,9 @@ func (p *AzurePrivateDNSProvider) zones(ctx context.Context) ([]privatedns.Priva
|
||||
zone := i.Value()
|
||||
log.Debugf("Validating Zone: %v", *zone.Name)
|
||||
|
||||
if zone.Name == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if !p.domainFilter.Match(*zone.Name) {
|
||||
continue
|
||||
}
|
||||
|
||||
if !p.zoneIDFilter.Match(*zone.ID) {
|
||||
continue
|
||||
}
|
||||
|
||||
if zone.Name != nil && p.domainFilter.Match(*zone.Name) && p.zoneIDFilter.Match(*zone.ID) {
|
||||
zones = append(zones, zone)
|
||||
}
|
||||
|
||||
err := i.NextWithContext(ctx)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user