-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix(srv): SRV records not created #1890
fix(srv): SRV records not created #1890
Conversation
Welcome @AmitBenAmi! |
/assign @njuettner |
Yes, please. I can confirm this fixes the immediate problem. However, applying your PR with or without my patch shows a deeper problem: external-dns will not create multiple RR types for a single label, so:
Will not work as intended, only one of the RR types is created (happens to be the TXT for me and if I remove that one, I get only the A). So despite endpoints being an array, its elements are not properly dealt with when they share the same dnsName :-( So sadly this controller isn't fit to manage all of my DNS needs (yet?) FWIW, all tested with the Google provider. |
Yes I see what you mean by that. In AWS Route53 there is a MultiValue property that can be set which I utilizes to use multiple SRV records with the same dnsName, otherwise it will be problematic since they are all with the same name. Maybe there is something in Google Provider that supports multiple DNS records and types with same names? |
/assign @Raffo |
Yes, I'm not familiar with Google's Cloud DNS API directly, but from the error messages I presume that an upsert of a record always needs to contain all values. As I understand the docs, the corresponding rrdatas field is an array anyway, so you just add all values there. An update has to delete all previous records with the dnsName (explicitly listing all values as it seems) and add all wanted values in one go. So you will have to consolidate all targets for a given record type and dnsName (including the heritage value for TXT) into one change operation. And maybe all targets for all record types at the same dnsName into one transaction. A lot of guessing and assumptions here, but probably such a consolidation is required or at least harmless with other providers? |
Might be harmless, but kind of out of scope for this PR IMO |
Oh it sure is. Only diverted into this direction because the issue popped up when experimenting with this PR, as it the current limitation very much reduces the usability of this PR, sorry. |
Oh ok, I didn't get that. |
Not a regression. The issue I described exists without this PR, it just really surfaces when it's possible to add more record types as introduced by this PR. |
Oh now I get it. |
Hey all! Hoping to create some SRV DNS endpoints for a FreeIPA service. Can this get merged? |
Waiting for an approval. |
Any updates on this? |
272824a
to
4e35d0b
Compare
I don't think I can approve this. I'm owner only of Cloudflare provider. Someone with permission to review whole project is needed here |
/kind bug |
Any updates? Support for SRV records is fundamental for many operations, would be great see this PR merged. |
Waiting for an approval and merge.. |
5f7bd01
to
2e5e818
Compare
@AmitBenAmi: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm trying to solve it here: #2157
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Why was this not approved? It would be quite handy... |
any chance to re-open and merge this? |
@michaelkorofiverr I can reopen and try to rebase, but it will be a whole new PR because lots of commits have passed by, so not sure it will fit anymore. |
Although SRV records are supported (both in docs and code), they aren't created at all using
DNSEndpoint
.This fix makes it happen properly
fixes #1814
fixes #1647