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,20 +175,10 @@ func (p *AzurePrivateDNSProvider) zones(ctx context.Context) ([]privatedns.Priva
|
|||||||
zone := i.Value()
|
zone := i.Value()
|
||||||
log.Debugf("Validating Zone: %v", *zone.Name)
|
log.Debugf("Validating Zone: %v", *zone.Name)
|
||||||
|
|
||||||
if zone.Name == nil {
|
if zone.Name != nil && p.domainFilter.Match(*zone.Name) && p.zoneIDFilter.Match(*zone.ID) {
|
||||||
continue
|
zones = append(zones, zone)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !p.domainFilter.Match(*zone.Name) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if !p.zoneIDFilter.Match(*zone.ID) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
zones = append(zones, zone)
|
|
||||||
|
|
||||||
err := i.NextWithContext(ctx)
|
err := i.NextWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user