controllerutil

package
v0.0.0-...-48ff17a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterTypeOwnerReferences

func GetClusterTypeOwnerReferences(clusterName string, ownerType client.Object, obj client.Object, scheme *runtime.Scheme, controller bool) ([]mcmeta.OwnerReference, error)

GetClusterTypeOwnerReferences gets the mcmeta.OwnerReferences for the given cluster name and owner type, optionally filtering whether it's a controller or not.

func HasOwnerReference

func HasOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) (bool, error)

func RefersToClusterAndType

func RefersToClusterAndType(clusterName string, ownerType client.Object, ref mcmeta.OwnerReference, scheme *runtime.Scheme) (bool, error)

func RemoveOwnerReference

func RemoveOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) error

func SetControllerReference

func SetControllerReference(clusterName string, brokerOwner, childControlled metav1.Object, scheme *runtime.Scheme) error

func SetOwnerReference

func SetOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) error

Types

type AlreadyOwnedError

type AlreadyOwnedError struct {
	Object metav1.Object
	Owner  mcmeta.OwnerReference
}

func (*AlreadyOwnedError) Error

func (e *AlreadyOwnedError) Error() string

Jump to

Keyboard shortcuts

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