Documentation ¶
Index ¶
- func ConvertObjectToUnstructuredList(obj runtime.Object) ([]unstructured.Unstructured, error)
- func ConvertSingleObjectToUnstructured(obj runtime.Object) (unstructured.Unstructured, error)
- func CreateApplyAnnotation(obj runtime.Object, codec runtime.Encoder) error
- func GetModifiedConfiguration(obj runtime.Object, annotate bool, codec runtime.Encoder) ([]byte, error)
- func GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
- func MergeStringMaps(maps ...map[string]string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertObjectToUnstructuredList ¶
func ConvertObjectToUnstructuredList(obj runtime.Object) ([]unstructured.Unstructured, error)
func ConvertSingleObjectToUnstructured ¶
func ConvertSingleObjectToUnstructured(obj runtime.Object) (unstructured.Unstructured, error)
func CreateApplyAnnotation ¶
CreateApplyAnnotation gets the modified configuration of the object, without embedding it again, and then sets it on the object as the annotation.
func GetModifiedConfiguration ¶
func GetModifiedConfiguration(obj runtime.Object, annotate bool, codec runtime.Encoder) ([]byte, error)
GetModifiedConfiguration retrieves the modified configuration of the object. If annotate is true, it embeds the result as an annotation in the modified configuration. If an object was read from the command input, it will use that version of the object. Otherwise, it will use the version from the server.
func GetOriginalConfiguration ¶
GetOriginalConfiguration retrieves the original configuration of the object from the annotation, or nil if no annotation was found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.