From 513d23a10f5618b52ab462e139d752da30be0ca4 Mon Sep 17 00:00:00 2001 From: Lukasz Szaszkiewicz Date: Tue, 5 Mar 2024 11:52:25 +0100 Subject: [PATCH] apimachinery/meta/types.go: define InitialEventsAnnotationKey const InitialEventsAnnotationKey the name of the key under which an annotation marking the end of a watchlist stream is stored. The annotation is added to a "Bookmark" event. The const will be immediately used in client-go and apiserver packages. Kubernetes-commit: 3f7d4b787b74a2d110901d333f83e99c0e5e49c9 --- pkg/apis/meta/v1/types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/apis/meta/v1/types.go b/pkg/apis/meta/v1/types.go index 881cc959d..9695ba50b 100644 --- a/pkg/apis/meta/v1/types.go +++ b/pkg/apis/meta/v1/types.go @@ -432,6 +432,15 @@ type ListOptions struct { SendInitialEvents *bool `json:"sendInitialEvents,omitempty" protobuf:"varint,11,opt,name=sendInitialEvents"` } +const ( + // InitialEventsAnnotationKey the name of the key + // under which an annotation marking the end of + // a watchlist stream is stored. + // + // The annotation is added to a "Bookmark" event. + InitialEventsAnnotationKey = "k8s.io/initial-events-end" +) + // resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch // may only be set if resourceVersion is also set. //