mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 20:36:13 +02:00
Add deprecation notice to associated K8s endpoints API objects
Signed-off-by: Michael Shen <mishen@umich.edu>
This commit is contained in:
parent
1703e54dfd
commit
9c525b84c4
@ -32,6 +32,7 @@ import (
|
||||
)
|
||||
|
||||
// Endpoints discovers new endpoint targets.
|
||||
// Deprecated: The Endpoints API is deprecated starting in K8s v1.33+. Use EndpointSlice.
|
||||
type Endpoints struct {
|
||||
logger *slog.Logger
|
||||
|
||||
@ -51,7 +52,7 @@ type Endpoints struct {
|
||||
}
|
||||
|
||||
// NewEndpoints returns a new endpoints discovery.
|
||||
// Endpoints API is deprecated in k8s v1.33+, but we should still support it.
|
||||
// Deprecated: The Endpoints API is deprecated starting in K8s v1.33+. Use NewEndpointSlice.
|
||||
func NewEndpoints(l *slog.Logger, eps cache.SharedIndexInformer, svc, pod, node, namespace cache.SharedInformer, eventCount *prometheus.CounterVec) *Endpoints {
|
||||
if l == nil {
|
||||
l = promslog.NewNopLogger()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user