You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove usage of deprecated K8s v1 Endpoints API #2258
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 - startEndpointsWatcher function creates an informer using factory.Core().V1().Endpoints().Informer()
k8s_metadata_utils.go:185-194 - endpointsConverter function converts v1.Endpoints objects
Activity