-
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(Google DNS): ensure trailing dot on NS records #4847
Conversation
NS records added in Google Cloud DNS must have a trailing dot. Otherwise the API throws the following error: ``` time="2024-11-04T10:34:20Z" level=error msg="googleapi: Error 400: Invalid value for 'entity.change.additions[cloud.k8gb.io.][NS].rrdata[0]': 'gslb-ns-eu-cloud.k8gb.io', invalid" ``` This is similar to CNAME, MX and SRV records. --- This change was tested with the a DNSEndpoint CRD containing the following endpoints: ``` endpoints: - dnsName: cloud.k8gb.io recordTTL: 5 recordType: NS targets: - gslb-ns-eu-cloud.k8gb.io - gslb-ns-us-cloud.k8gb.io - dnsName: gslb-ns-eu-cloud.k8gb.io ``` And the record was successfully created ``` gcloud dns record-sets list --zone="k8gb" --type=NS --name "cloud.k8gb.io." NAME TYPE TTL DATA cloud.k8gb.io. NS 5 gslb-ns-eu-cloud.k8gb.io.,gslb-ns-us-cloud.k8gb.io. ``` Signed-off-by: Andre Aguas <[email protected]>
Hi @abaguas. 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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Would you please add a test for this change ? |
Signed-off-by: Andre Aguas <[email protected]>
0b5ada9
to
43b6963
Compare
Ups. Done @mloiseleur |
Co-authored-by: Michel Loiseleur <[email protected]>
/ok-to-test |
/lgtm |
/retitle fix(Google DNS): ensure trailing dot on NS records |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Raffo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
NS records added in Google Cloud DNS must have a trailing dot. Otherwise the API throws the following error:
This is similar to CNAME, MX and SRV records.
This change was tested with the a DNSEndpoint CRD containing the following endpoints:
And the record was successfully created
Checklist