Skip to content

Commit 513d23a

Browse files
p0lyn0mialk8s-publishing-bot
authored andcommitted
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
1 parent 67cb3a8 commit 513d23a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/apis/meta/v1/types.go

+9
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,15 @@ type ListOptions struct {
432432
SendInitialEvents *bool `json:"sendInitialEvents,omitempty" protobuf:"varint,11,opt,name=sendInitialEvents"`
433433
}
434434

435+
const (
436+
// InitialEventsAnnotationKey the name of the key
437+
// under which an annotation marking the end of
438+
// a watchlist stream is stored.
439+
//
440+
// The annotation is added to a "Bookmark" event.
441+
InitialEventsAnnotationKey = "k8s.io/initial-events-end"
442+
)
443+
435444
// resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch
436445
// may only be set if resourceVersion is also set.
437446
//

0 commit comments

Comments
 (0)