Curiosity topic here
Reading the Efficient detection of changes section, I was wondering how k8s can keep track of all past resource’s versions/changes.
Docs says:
These changes itemize the outcome of operations (such as create, delete, and update) that occurred after the resourceVersion
you specified as a parameter to the watch request.
Meaning that k8s knows the full resource version at any time in the past.
Did k8s save a full snapshot after any received PUT/PATCH request? Maybe a diff?
If anybody knows the magic behind this, or the actual source file inside the repo that does that, thank you much!