util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepHashObject

func DeepHashObject(obj interface{}) (string, error)

DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.

func ManifestObjects

func ManifestObjects(r io.Reader, name string) ([]client.Object, error)

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

func ObjectNameForBaseAndSuffix added in v1.3.0

func ObjectNameForBaseAndSuffix(base string, suffix string) string

func ToUnstructured added in v1.3.0

func ToUnstructured(obj client.Object) (*unstructured.Unstructured, error)

ToUnstructured converts obj into an Unstructured. It expects the obj's gvk to be defined. If it is not, an error will be returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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