Skip to content

fix: replace deprecated Endpoints API with EndpointSlice#23

Open
tolkonepiu wants to merge 1 commit intojkulzer:mainfrom
tolkonepiu:fix/deprecation-endpoints-to-endpointslice
Open

fix: replace deprecated Endpoints API with EndpointSlice#23
tolkonepiu wants to merge 1 commit intojkulzer:mainfrom
tolkonepiu:fix/deprecation-endpoints-to-endpointslice

Conversation

@tolkonepiu
Copy link

This PR fixes a deprecation warning that appears when running against Kubernetes v1.33+:

go run ./kubefetch.go
W0726 16:14:19.136685   74201 warnings.go:70] v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice

- Replace deprecated v1.Endpoints with discovery.k8s.io/v1.EndpointSlice
- Update getKubernetesEndpointPort function to use EndpointSlices
- Resolves deprecation warning: 'v1 Endpoints is deprecated in v1.33+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant