# Functions
AddFinalizer accepts an Object and adds the provided finalizer if not present.
ContainsFinalizer checks an Object that the provided finalizer is present.
CreateOrPatch creates or patches the given object in the Kubernetes cluster.
CreateOrUpdate creates or updates the given object in the Kubernetes cluster.
HasControllerReference returns true if the object has an owner ref with controller equal to true.
HasOwnerReference returns true if the owners list contains an owner reference that matches the object's group, kind, and name.
RemoveControllerReference removes an owner reference where the controller equals true.
RemoveFinalizer accepts an Object and removes the provided finalizer if present.
RemoveOwnerReference is a helper method to make sure the given object removes an owner reference to the object provided.
SetControllerReference sets owner as a Controller OwnerReference on controlled.
SetOwnerReference is a helper method to make sure the given object contains an object reference to the object provided.
WithBlockOwnerDeletion allows configuring the BlockOwnerDeletion field on the `metav1.OwnerReference`.
# Constants
OperationResultCreated means that a new resource is created.
OperationResultNone means that the resource has not been changed.
OperationResultUpdated means that an existing resource is updated.
OperationResultUpdatedStatus means that an existing resource and its status is updated.
OperationResultUpdatedStatusOnly means that only an existing status is updated.
# Structs
AlreadyOwnedError is an error returned if the object you are trying to assign a controller reference is already owned by another controller Object is the subject and Owner is the reference for the current owner.
# Type aliases
MutateFn is a function which mutates the existing object into its desired state.
OperationResult is the action result of a CreateOrUpdate call.
OwnerReferenceOption is a function that can modify a `metav1.OwnerReference`.