Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
func Canonical(inst *unstructured.Unstructured) *unstructured.Unstructured
Canonical returns a canonicalized version of the object - that is, one that has the same name, spec and non-HNC labels and annotations, but with the status and all other metadata cleared (including, notably, the namespace). The resulting object is suitable to be copied into a new namespace, or two canonicalized objects are suitable for being compared via reflect.DeepEqual.
As a side effect, the label and annotation maps are always initialized in the returned value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.