Skip to content

Commit 2e62161

Browse files
authored
Merge pull request kubernetes#127319 from p0lyn0mial/upstream-define-initial-events-list-blueprint
apimachinery/meta/types.go: define InitialEventsListBlueprintAnnotationKey const
2 parents f3a54b6 + 574460e commit 2e62161

File tree

1 file changed

+14
-0
lines changed
  • staging/src/k8s.io/apimachinery/pkg/apis/meta/v1

1 file changed

+14
-0
lines changed

staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,20 @@ const (
439439
//
440440
// The annotation is added to a "Bookmark" event.
441441
InitialEventsAnnotationKey = "k8s.io/initial-events-end"
442+
443+
// InitialEventsListBlueprintAnnotationKey is the name of the key
444+
// where an empty, versioned list is encoded in the requested format
445+
// (e.g., protobuf, JSON, CBOR), then base64-encoded and stored as a string.
446+
//
447+
// This encoding matches the request encoding format, which may be
448+
// protobuf, JSON, CBOR, or others, depending on what the client requested.
449+
// This ensures that the reconstructed list can be processed through the
450+
// same decoder chain that would handle a standard LIST call response.
451+
//
452+
// The annotation is added to a "Bookmark" event and is used by clients
453+
// to guarantee the format consistency when reconstructing
454+
// the list during WatchList processing.
455+
InitialEventsListBlueprintAnnotationKey = "kubernetes.io/initial-events-list-blueprint"
442456
)
443457

444458
// resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch

0 commit comments

Comments
 (0)