Skip to content

Commit

Permalink
apimachinery/meta/types.go: define InitialEventsAnnotationKey const
Browse files Browse the repository at this point in the history
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
  • Loading branch information
p0lyn0mial authored and k8s-publishing-bot committed Mar 5, 2024
1 parent 67cb3a8 commit 513d23a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/apis/meta/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down

0 comments on commit 513d23a

Please sign in to comment.