package
2.16.1
Repository: https://github.com/elastic/cloud-on-k8s.git
Documentation: pkg.go.dev

# Functions

GetTemplateHashLabel returns the template hash label value if set, or an empty string.
HashObject returns a hash of a given object using the 32-bit FNV-1 hash function and the spew library to print the object (see WriteHashObject).
SetTemplateHashLabel adds a label containing the hash of the given template into the given labels.
WriteHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.

# Constants

TemplateHashLabelName is a label to annotate a Kubernetes resource with the hash of its initial template before creation.