Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizerIfNotPresent ¶
AddFinalizerIfNotPresent adds a finalizer an object to avoid instant deletion of the object without finalizing it.
func GetControllerObjectOwnerReference ¶
func GetControllerObjectOwnerReference(object metav1.Object, scheme *runtime.Scheme) (*metav1.OwnerReference, error)
GetControllerObjectOwnerReference returns the owner reference that should be used by all child objects of a given controller
Types ¶
type OwnerMatcher ¶
type OwnerMatcher struct {
// contains filtered or unexported fields
}
OwnerMatcher is a struct representing the controller owner reference to use for comparison with child objects
func NewOwnerReferenceMatcher ¶
NewOwnerReferenceMatcher initializes a new owner reference matcher
Click to show internal directories.
Click to hide internal directories.