Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceToUnstructured ¶ added in v2.16.0
func ResourceToUnstructured(res *resource.Resource) (*unstructured.Unstructured, error)
ResourceToUnstructured converts a resource.Resource to an Unstructured object.
func StrToUnstructured ¶
func StrToUnstructured(resources string) ([]*unstructured.Unstructured, error)
StrToUnstructured converts a string containing multiple resources in YAML format to a slice of Unstructured objects. The input string is split by "---" separator and each part is unmarshalled into an Unstructured object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.