-
Notifications
You must be signed in to change notification settings - Fork 3.4k
cilium-cli: Migrate from corev1.Endpoints
to discoveryv1.EndpointSlice
#39364
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
/test |
Pinging @aanm because I think Cilium 1.18 still will K8s <1.33 where endpoints haven't been deprecated yet |
I think it should be fine as long as clusters are on kubernetes v1.21+ to have endpointslices, see example from a $ k version
Server Version: v1.31.6
$ k get endpoints
NAME ENDPOINTS AGE
cluster-autoscaler 10.131.54.22:8085,10.131.55.99:8085 112d
$ k get endpointslices
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
cluster-autoscaler-nv2tz IPv4 8085 10.131.54.22,10.131.55.99 112d |
According to @aanm it is possible that users might still have endpoint slices disabled on 1.32 and older. Having said that, it's probably fine to merge this, as long as we mention it in the release notes. |
@HadrienPatte could you please rebase this PR branch? This should fix the failing GitHub Workflow Related Checks / Validate Workflow Names check. |
…lice` `corev1.Endpoints` is deprecated in v1.33+ `discoveryv1.EndpointSlice` is stable since v1.21 Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
f9a8083
to
0e36d25
Compare
/test |
corev1.Endpoints
is deprecated in v1.33+discoveryv1.EndpointSlice
is stable since v1.21Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.