managedfields

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(current, desired *unstructured.Unstructured) (*typed.Comparison, error)

Compare calculates the difference between the current and desired objects.

func ExtractAsUnstructured

func ExtractAsUnstructured(obj runtime.Object, fieldManager string, subresource string) (*unstructured.Unstructured, error)

ExtractAsUnstructured extracts the managed fields for a given field manager and subresource from a runtime.Object, returning an unstructured.Unstructured containing only the fields managed by that manager. Returns nil if no managed fields entry is found, or an error if extraction fails.

func GetObjectType

func GetObjectType(obj runtime.Object) (typed.ParseableType, error)

GetObjectType creates a ParseableType for the given object using the generated schema.

func PruneEmptyFields

func PruneEmptyFields(u *unstructured.Unstructured)

PruneEmptyFields removes empty maps, slices, and zero-value fields from the provided unstructured.Unstructured object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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