Open dtuck9 opened 2 weeks ago
Welcome @dtuck9!
It looks like this is your first PR to kubernetes-sigs/external-dns 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-sigs/external-dns has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
Hi @dtuck9. Thanks for your PR.
I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign raffo for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
/ok-to-test
/retitle fix: do not merge CNAME with multiple targets
Description
While using the Google Cloud DNS provider, we encountered the following error:
Where
<CNAME DNS Name>
as the DNS Name and<RRData[1].Value>
is the targeted hostname without a trailing.
. After several hours of troubleshooting this failure, we discovered that it was actually a collision with a pre-existing DNS Name, and that the targets had been merged into the sameEndpoint
, where onlyrrdata[0]
had the trailing.
ensured by external-dns.We attempted the following on our end to get around this unexpected behavior in order to trigger the expected 409 error:
.
in our hostname definitions -- this way the 2rrdata
values would at least pass the Cloud DNS API validation for the trailing.
, and then fail with an error that makes more sense (CNAME not allowing more than one value in therrdata
). This however caused a reconciliation loop where external-dns kept deleting and re-adding the records in every batch.external-dns.alpha.kubernetes.io/set-identifier
annotation to prevent the merge in the first place, which would trigger the 409 for the CNAME DNS Name already existing. Unfortunately this also seemed to cause a reconciliation loop where external-dns kept deleting and re-adding the records in every batch.I considered making a change in the Cloud DNS provider to avoid impacting other providers where perhaps this behavior is expected in order to allow different routing policies that are more tightly coupled with the DNS record. However, by the time the endpoint gets into the provider, the context of the duplicate record's resource label has already been lost due to the merge.
We are certainly open to suggestions on how to get around this behavior, or if you'd rather us file an issue and close this PR, that's fine, too.
No relevant user documentation was found.
Checklist