Documentation
¶
Overview ¶
Package hookcache shrinks the objects that the informers of hooks keep in memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripUnusedFields ¶
StripUnusedFields drops the fields that no hook reads before the informers of hooks cache and filter an object: metadata.managedFields of every object and status.images of Nodes. On large clusters these fields take most of the cache.
It changes the object in place, is idempotent and returns anything that is not *unstructured.Unstructured, e.g. cache.DeletedFinalStateUnknown, as is.
Types ¶
This section is empty.