Documentation
¶
Index ¶
- func Compare(current, desired *unstructured.Unstructured) (*typed.Comparison, error)
- func ExtractAsUnstructured(obj runtime.Object, fieldManager string, subresource string) (*unstructured.Unstructured, error)
- func GetObjectType(obj runtime.Object) (typed.ParseableType, error)
- func PruneEmptyFields(u *unstructured.Unstructured)
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.
Click to show internal directories.
Click to hide internal directories.