-
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
SRV records cannot be created by the cloudflare provider #4751
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues 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. This bot triages un-triaged issues 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 according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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-sigs/prow repository. |
What happened: I tried to create and SRV record with a
DNSEndpoint
CRD, using the cloudflare provider and this failed with a validation error from cloudflare's API as seen in the debug logs of external-dns.What you expected to happen: The SRV record is created successfully.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?: Cloudflare's API wants the SRV record to be created using structured data fields for all of the target's parameters and external-dns just tries to jam the raw resulting string into the create record API which is not how you create SRV records on cloudflare. The fix looks pretty obvious, the cloudflare provider's logic needs to be updated in order to support a special case to structure the data if we are creating an SRV record.
Unfortunately, the
DNSEndpoint
CRD is overly-simple and does not support describing this data in a structured way in the CRD itself so I suggest just doing the minimal amount of work and splitting the string on spaces if the record type is SRV to construct the structured fields and hope the data is valid-ish.Ref: https://github.com/cloudflare/cloudflare-go/blob/v0.104.0/dns.go#L184
Environment:
external-dns --version
): v0.15.0The text was updated successfully, but these errors were encountered: