-
Notifications
You must be signed in to change notification settings - Fork 483
Open
Labels
Description
Describe the Task
The vizier metadata service is currently using the deprecated v1 Endpoints API which is deprecated in Kubernetes v1.33+. The service is logging deprecation warnings:
app W0812 17:51:11.373392 1 warnings.go:70] v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice
app W0812 17:51:11.396926 1 warnings.go:70] v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice
This needs to be updated to use the newer discovery.k8s.io/v1 EndpointSlice API to ensure compatibility with future Kubernetes versions and eliminate deprecation warnings.
Code Locations
The following files contain code using the deprecated v1 Endpoints API and should be further investigated to determine the set of changes necessary:
- k8s_metadata_utils.go:128-134 -
startEndpointsWatcherfunction creates an informer usingfactory.Core().V1().Endpoints().Informer() - k8s_metadata_utils.go:185-194 -
endpointsConverterfunction convertsv1.Endpointsobjects - k8s_metadata_handler.go:184 - Registers
EndpointsUpdateProcessor - k8s_metadata_handler.go:424-540 -
EndpointsUpdateProcessorimplementation that processes Endpoints updates - proto_utils.go:470-493 -
EndpointsToProtoandEndpointsFromProtoconversion functions - k8s_metadata_controller_test.go:589 - Test code using
CoreV1().Endpoints()interface