Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustToUnstructured ¶
func MustToUnstructured(obj runtime.Object) *unstructured.Unstructured
MustToUnstructured is a helper function that converts a runtime.Object to an unstructured.Unstructured to be used by the dynamic client. The dynamic client only uses *unstructured.Unstructured when accessing specific resources. e.g. for namespaces
namespace := &coreV1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "namespaceName", Annotations: annotations, Labels: labels, }, } namespaceUnstructured := unstructured.MustToUnstructured(namespace)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.