-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external-dns: Not filtering to provided HostedZoneID's #791
Comments
We got the same issue here. EKS Blueprints Version Kubernetes Version:
|
we encountered the same issue here with cdk, which is a bit similar to this one in terraform aws-ia/terraform-aws-eks-blueprints-addons#17 |
First of all, here is one way to do a hotfix. It requires you to specify a domain filter such as example.com. Then only hosted zones for domains like example.com and it's subdomains are considered by external dns.
Don't be confused that I set the hostedZoneResources to an array of the relevant domains. This works because I also use the domain name as the name for the resource provider.
I'd be happy to write the fix if you can assign the issue to me. Should be no big deal to provide the zoneIds to the |
I observed a somewhat similar issue before, we should treat it as a defect/enhancement/regression issue. |
Okay thanks for the explanation about why the abstraction layer is needed. I only considered my simpler single cluster setup. Do you mind if I implement the fix anyways? I could get it done next week. I can apply the domainFilters based on the hosted zone ID. If there is any uncertainty about the implementation, I will just make a suggestion about my preferred solution here. |
@2start I was thinking to just apply a simple fix of mapping the domain filters to the right parameter for the helm chart. |
@shapirov103 Okay cool, looking forward to that. I'll open a PR this week! |
Fixed with #818 |
Describe the bug
Since this change from the
Bitnami
to thekubernetes-sigs
helm chart, provided HostedZones are not being filtered to and passed as args to theexternal-dns
container like previously.Expected Behavior
Previous generated container args:
Current Behavior
Current container args:
Resulting in errors where it fails to list records in an unrelated zone in the same account:
Reproduction Steps
Deploy a cluster with the external-dns addon and pass in the hostedzone from the resource provider.
Possible Solution
extraArgs
is a property where the expected outcome can probably be recreated by manually inserting thezone-id-filter
arg.Additional Information/Context
There doesn't exist a
zoneIdFilters
property now like there was previously with theBitnami
helm chart, but that's still passed in.CDK CLI Version
2.86.0
EKS Blueprints Version
1.10.1
Node.js Version
18.16.1
Environment details (OS name and version, etc.)
AWS EKS v1.26
Other information
No response
The text was updated successfully, but these errors were encountered: