Documentation ¶
Overview ¶
Package ownerrefs contains ownerref utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasOwnerReferenceFrom ¶
HasOwnerReferenceFrom checks if obj has an ownerRef pointing to owner.
func OwnerReferenceTo ¶
func OwnerReferenceTo(obj client.Object, gvk schema.GroupVersionKind) *metav1.OwnerReference
OwnerReferenceTo converts an object to an OwnerReference. Note: We pass in gvk explicitly as we can't rely on GVK being set on all objects (only on Unstructured).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.