gardener / external-dns-management

Environment to manage external DNS entries for a kubernetes cluster
Apache License 2.0
81 stars 67 forks source link

Validate provider domain includes and excludes for wildcards #335

Closed MartinWeindel closed 10 months ago

MartinWeindel commented 10 months ago

What this PR does / why we need it: The DNSProvider specifies included and excluded domain with the spec.domains.include and spec.domains.exclude fields. It is expected, that these are the plain domain names and subsume any subdomains implicitly. Sometimes users try to define a domain using wildcards, e.g. *.example.com instead of example.com, which is accepted, but does not work. With this PR, the include and exclude domains are validated for such forbidden wildcard domains and report a user friendly error.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Release note:

Validate provider domain includes and excludes for forbidden wildcard domains.