Merge pull request #123708 from p0lyn0mial/upstream-const-watchlist-bookmark-event

apimachinery/meta/types.go: define InitialEventsAnnotationKey const
This commit is contained in:
Kubernetes Prow Robot 2024-03-05 10:40:51 -08:00 committed by GitHub
commit b0ee334374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
//