You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making a snapshot of the Kubernetes store store.Storer may be expensive, especially for large configs also it impacts the memory footprint of KIC, thus do it only when it differs from the previous one.
Calculate the hash from all objects in a store and compare it with a hash preserved for the currently used snapshot.
An instance of an object (resource) in K8s can be uniquely identified by one of the below:
programmer04
changed the title
Make snapshot of the store only when it differs from previous snapshot
Make a new snapshot of the store only when it differs from previous snapshot
May 9, 2024
Making a snapshot of the Kubernetes store
store.Storer
may be expensive, especially for large configs also it impacts the memory footprint of KIC, thus do it only when it differs from the previous one.Calculate the hash from all objects in a store and compare it with a hash preserved for the currently used snapshot.
An instance of an object (resource) in K8s can be uniquely identified by one of the below:
Kind
,Namespace
(for namespace resources),Name
(API version is irrelevant)so one of the above has to be included alongside resourceVersion that makes change tracking possible.
For actual implementation worth checking library is hashstructure
The text was updated successfully, but these errors were encountered: