ownerrefs

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ownerrefs contains ownerref utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasOwnerReferenceFrom

func HasOwnerReferenceFrom(obj, owner client.Object) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL