managedfields

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(live, config *unstructured.Unstructured, trustedManagers []string, pt *typed.ParseableType) (*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. If pt is nil, the normalization will use a deduced parseable type which means that lists and maps are manipulated atomically. It is a no-op if no trustedManagers is provided. It is also a no-op if live or config are nil.

func ResolveParseableType added in v2.4.0

func ResolveParseableType(gvk schema.GroupVersionKind, parser *k8smanagedfields.GvkParser) *typed.ParseableType

func StaticParser added in v2.4.0

func StaticParser() *typed.Parser

Types

This section is empty.

Jump to

Keyboard shortcuts

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