Documentation ¶
Index ¶
- func GetClusterTypeOwnerReferences(clusterName string, ownerType client.Object, obj client.Object, ...) ([]mcmeta.OwnerReference, error)
- func HasOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) (bool, error)
- func RefersToClusterAndType(clusterName string, ownerType client.Object, ref mcmeta.OwnerReference, ...) (bool, error)
- func RemoveOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) error
- func SetControllerReference(clusterName string, brokerOwner, childControlled metav1.Object, ...) error
- func SetOwnerReference(clusterName string, brokerOwner, object metav1.Object, scheme *runtime.Scheme) error
- type AlreadyOwnedError
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 RefersToClusterAndType ¶
func RemoveOwnerReference ¶
func SetControllerReference ¶
Types ¶
type AlreadyOwnedError ¶
type AlreadyOwnedError struct { Object metav1.Object Owner mcmeta.OwnerReference }
func (*AlreadyOwnedError) Error ¶
func (e *AlreadyOwnedError) Error() string
Click to show internal directories.
Click to hide internal directories.