Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUnstructured ¶
func BytesToUnstructured(b []byte) ([]*unstructured.Unstructured, error)
BytesToUnstructured converts a slice of Bytes to Unstructured objects. This function is useful when you want to read a yaml manifest and covert it to Kubernetes objects.
func EnsureNamespace ¶
EnsureNamespace ensures the namespace exists in the cluster by creating it if it does not exist.
func UnstructuredToBytes ¶
func UnstructuredToBytes(objs []*unstructured.Unstructured) ([]byte, error)
UnstructuredToBytes converts a list of Unstructured objects to YAML.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.