utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOwnedResourceRef

func AddOwnedResourceRef(
	scheme *runtime.Scheme,
	refs *[]packagesv1alpha1.OwnedResourceRef,
	obj client.Object,
) (bool, error)

func GetGVK added in v0.1.0

func GetGVK(scheme *runtime.Scheme, obj client.Object) (metav1.GroupVersionKind, error)

func MarkForDeletion added in v0.1.0

func MarkForDeletion(refs *[]packagesv1alpha1.OwnedResourceRef, toRemove packagesv1alpha1.OwnedResourceRef) bool

func ObjHasOwner

func ObjHasOwner(obj, owner client.Object) (bool, error)

func OwnedResourceRefToObject

func OwnedResourceRefToObject(ref packagesv1alpha1.OwnedResourceRef) client.Object

func RefersToSameResource

func RefersToSameResource(a, b packagesv1alpha1.OwnedResourceRef) bool

func ToOwnedResourceRef

func ToOwnedResourceRef(scheme *runtime.Scheme, obj client.Object) (packagesv1alpha1.OwnedResourceRef, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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