Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(live, config *unstructured.Unstructured) (*typed.Comparison, error)
Compare will compare the live and the config state and returned a typed.Comparison as a result.
func Normalize ¶
func Normalize(live, config *unstructured.Unstructured, trustedManagers []string) (*unstructured.Unstructured, *unstructured.Unstructured, error)
Normalize will compare the live and config states. If config mutates a field that belongs to one of the trustedManagers it will remove that field from both live and config objects and return the normalized objects in this order. This function won't modify the live and config parameters. It is a no-op if no trustedManagers is provided. It is also a no-op if live or config are nil.
func PathToNestedFields ¶
PathToNestedFields will convert a path into a slice of field names so it can be used in unstructured nested fields operations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.