Skip to content

Regex including and excluding same records #5591

@johnwc

Description

@johnwc

I have the helm chart installed using the following configuration. I have the regex filter added so to never create wildcard records.

provider:
  name: pdns
logLevel: debug
domainFilters:
  - ourdomain.net
  - ourdomain.dev
extraArgs:
  - --txt-wildcard-replacement=wildcard
  - --pdns-server=http://10.100.1.5:8081
  - --pdns-server-id=localhost
  - --annotation-filter=external-dns.alpha.kubernetes.io/exclude notin (true)
  - --regex-domain-filter=^[\w-]+(\.[\w-]+)*\.ourdomain\.(net|dev)$
  - --ignore-ingress-tls-spec
sources:
  - service
  - ingress
txtOwnerId: clst01

I see this in the logs. Shows first ignoring the correct domains, then saying it needs to create the others, then says it will ignore the others.

level=debug msg="Endpoints generated from ingress: ourdomain/ourdomain-web: [www.ourdomain.com 0 IN A  10.100.1.46 []]"
level=debug msg="Endpoints generated from ingress: cache/redis-insight-redisinsight: [prd01.cache.ourdomain.net 0 IN A  10.100.1.46 []]"
level=debug msg="Endpoints generated from ingress: ourdomain/jobs: [jobs.ourdomain.net 0 IN A  10.100.1.46 []]"
level=debug msg="Endpoints generated from ingress: ourdomain/preview-ourdomain-services-web: [preview.ourdomain.com 0 IN A  10.100.1.46 []]"
level=debug msg="Endpoints generated from ingress: ourdomain/ourdomain-api-api: [api.ourdomain.com 0 IN A  10.100.1.46 []]"
level=debug msg="ignoring record www.ourdomain.com that does not match domain filter"
level=debug msg="ignoring record preview.ourdomain.com that does not match domain filter"
level=debug msg="ignoring record api.ourdomain.com that does not match domain filter"
level=info msg="CREATE: prd01.cache.ourdomain.net 0 IN A  10.100.1.46 []"
level=info msg="CREATE: jobs.ourdomain.net 0 IN A  10.100.1.46 []"
level=info msg="CREATE: prd01.cache.ourdomain.net 0 IN TXT  \"heritage=external-dns,external-dns/owner=prd01,external-dns/resource=ingress/cache/redis-insight-redisinsight\" []"
level=info msg="CREATE: a-prd01.cache.ourdomain.net 0 IN TXT  \"heritage=external-dns,external-dns/owner=prd01,external-dns/resource=ingress/cache/redis-insight-redisinsight\" []"
level=info msg="CREATE: jobs.ourdomain.net 0 IN TXT  \"heritage=external-dns,external-dns/owner=prd01,external-dns/resource=ingress/ourdomain/jobs\" []"
level=info msg="CREATE: a-jobs.ourdomain.net 0 IN TXT  \"heritage=external-dns,external-dns/owner=prd01,external-dns/resource=ingress/ourdomain/jobs\" []"
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): a-jobs.ourdomain.net."
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): a-prd01.cache.ourdomain.net."
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): jobs.ourdomain.net."
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): jobs.ourdomain.net."
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): prd01.cache.ourdomain.net."
level=debug msg="Ignoring Endpoint because it was matched to a zone that was not specified within Domain Filter(s): prd01.cache.ourdomain.net."
level=debug msg="Zone List generated from Endpoints: []"
level=info msg="Changes pushed out to PowerDNS in 6.507441ms\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions