-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(source): use EndpointSlices instead of Endpoints for Service #5493
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
Conversation
|
Hi @vflaux. 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. |
|
@vflaux As of Kubernetes 1.21, the EndpointSlices API is a stable alternative. Users of obsolete versions of Kubernetes can use obsolete versions of external dns. IIRC, On Traefik Proxy, they have made the switch in v3.1.0, without any known issues since then. => Wdyt about just making the switch, without any flag ? We'll add a notice for RBAC change in release notes. |
|
@mloiseleur I followed @ivankatliarchuk’s comment on this issue: #5467 (comment), but simply switching to EndpointSlices would be less complex. |
|
/ok-to-test |
|
I thought is going to me more complicated to do the switch. Nice one |
|
If we think that support for Endpoint and EndpointSlices is not reqiured, fine with me. |
|
For external dns feature, we should do deprecation. |
|
for helm chart, any chance you could add a helm unit test? This is what we are using https://github.com/helm-unittest/helm-unittest |
ivankatliarchuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@ivankatliarchuk some of them are unreachable code at runtime; I’ve added comments for these cases. Regarding the |
|
Yeah, let's add tests in separate pr to cover missing cases |
ivankatliarchuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivankatliarchuk 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 |
|
Would it make sense to update https://github.com/kubernetes-sigs/external-dns?tab=readme-ov-file#kubernetes-version-compatibility for k8s >= 1.33 to use external-dns >= v0.18.0 ? |
|
@stevo-f3 Yes, clearly. Do you think you can open the PR to update it ? |



What does it do ?
Use EndpointSlices instead of Endpoints for Service source.
Allow to use EndpointSlices instead on Endpoints for Services source.This add a new interface for getting the endpoints from Services with two implementations: Endpoints & EndpointSlices.A new option--[no-]use-endpointslicesallow to switch between the two implementations.Endpoints implementation stays the default.
Motivation
#5467: Endpoints are deprecated in 1.33: https://kubernetes.io/blog/2025/04/24/endpoints-deprecation/
More