apimachinery/meta/types.go: define InitialEventsListBlueprintAnnotationKey const

This commit is contained in:
Lukasz Szaszkiewicz
2024-09-12 13:04:27 +02:00
parent 8e3adc4df6
commit 574460e21a

View File

@@ -439,6 +439,20 @@ const (
// //
// The annotation is added to a "Bookmark" event. // The annotation is added to a "Bookmark" event.
InitialEventsAnnotationKey = "k8s.io/initial-events-end" InitialEventsAnnotationKey = "k8s.io/initial-events-end"
// InitialEventsListBlueprintAnnotationKey is the name of the key
// where an empty, versioned list is encoded in the requested format
// (e.g., protobuf, JSON, CBOR), then base64-encoded and stored as a string.
//
// This encoding matches the request encoding format, which may be
// protobuf, JSON, CBOR, or others, depending on what the client requested.
// This ensures that the reconstructed list can be processed through the
// same decoder chain that would handle a standard LIST call response.
//
// The annotation is added to a "Bookmark" event and is used by clients
// to guarantee the format consistency when reconstructing
// the list during WatchList processing.
InitialEventsListBlueprintAnnotationKey = "kubernetes.io/initial-events-list-blueprint"
) )
// resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch // resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch