Skip to content

fix(crd): require trailing dot for SRV targets#6358

Open
alexbakker-quandago wants to merge 1 commit intokubernetes-sigs:masterfrom
alexbakker-quandago:fix-6357
Open

fix(crd): require trailing dot for SRV targets#6358
alexbakker-quandago wants to merge 1 commit intokubernetes-sigs:masterfrom
alexbakker-quandago:fix-6357

Conversation

@alexbakker-quandago
Copy link
Copy Markdown
Contributor

What does it do ?

This brings the CRD validation of SRV record targets in line with the ValidateSRVRecord function in endpoint/endpoint.go, which was changed in fde978f to require a trailing dot.

Motivation

Fixes #6357.

More

  • Yes, this PR title follows Conventional Commits
  • Yes, I added unit tests
  • Yes, I updated end user documentation accordingly

@k8s-ci-robot k8s-ci-robot requested a review from szuecs April 7, 2026 15:07
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[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 szuecs for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from vflaux April 7, 2026 15:07
@k8s-ci-robot k8s-ci-robot added docs source needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 7, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @alexbakker-quandago. 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.

Details

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.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 7, 2026
@ivankatliarchuk
Copy link
Copy Markdown
Member

/ok-to-test

@ivankatliarchuk
Copy link
Copy Markdown
Member

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 7, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 7, 2026

Coverage Report for CI Build 24122217084

Coverage remained the same at 80.528%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 21308
Covered Lines: 17159
Line Coverage: 80.53%
Coverage Strength: 1471.39 hits per line

💛 - Coveralls

@alexbakker-quandago
Copy link
Copy Markdown
Contributor Author

@ivankatliarchuk Could you provide an example of an integration test with DNSEndpoint? As far as I can tell, this is currently not supported by the framework:

// ParsedResources holds the parsed Kubernetes resources from a scenario.
type ParsedResources struct {
Ingresses []*networkingv1.Ingress
Services []*corev1.Service
EndpointSlices []*discoveryv1.EndpointSlice
Pods []*corev1.Pod
}

@ivankatliarchuk
Copy link
Copy Markdown
Member

@ivankatliarchuk Could you provide an example of an integration test with DNSEndpoint? As far as I can tell, this is currently not supported by the framework:

// ParsedResources holds the parsed Kubernetes resources from a scenario.
type ParsedResources struct {
Ingresses []*networkingv1.Ingress
Services []*corev1.Service
EndpointSlices []*discoveryv1.EndpointSlice
Pods []*corev1.Pod
}

Yeah. Too much work. I'll do it it

This brings the CRD validation of SRV record targets in line with the ``ValidateSRVRecord``
function in ``endpoint/endpoint.go``, which was changed in fde978f
to require a trailing dot.
@alexbakker-quandago
Copy link
Copy Markdown
Contributor Author

@ivankatliarchuk Thanks for the feedback. I've addressed both of your comments.

@ivankatliarchuk
Copy link
Copy Markdown
Member

Could you provide a similar ressult #5111 (comment)

I think we did get a working result on last PR, no idea how there is still a bug.

@alexbakker-quandago
Copy link
Copy Markdown
Contributor Author

@ivankatliarchuk In #6357 you can find steps to reproduce the issue. This should be reproducible regardless of any external-dns settings.

I think I now also understand when the issue was introduced, see: #6357 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. docs ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SRV records cannot be created using DNSEndpoint CRD

4 participants