What is the difference between a resourceVersion and a generation?

resourceVersion changes on every write, and is used for optimistic concurrency control

in some objects, generation is incremented by the server as part of persisting writes affecting the spec of an object.

some objects’ status fields have an observedGeneration subfield for controllers to persist the generation that was last acted on.

Leave a Comment

tech