managedfields

package
v2.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

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

func PathToNestedFields(path fieldpath.Path) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL