managedfields

package
v2.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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