Documentation ¶
Index ¶
- func AddFinalizer(o metav1.Object, finalizer string)
- func FinalizerExists(o metav1.Object, finalizer string) bool
- func Ignore(is ErrorIs, err error) error
- func IgnoreAny(err error, is ...ErrorIs) error
- func IgnoreNotFound(err error) error
- func RemoveFinalizer(o metav1.Object, finalizer string)
- type APIFinalizer
- type ErrorIs
- type Finalizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer to the supplied k8s object's metadata.
func FinalizerExists ¶
FinalizerExists checks whether a certain finalizer is already set on the aupplied object
func IgnoreAny ¶
IgnoreAny ignores errors that satisfy any of the supplied ErrorIs functions by returning nil. Errors that do not satisfy any of the supplied functions are returned unmodified.
func IgnoreNotFound ¶
IgnoreNotFound returns the supplied error, or nil if the error indicates a Kubernetes resource was not found.
func RemoveFinalizer ¶
RemoveFinalizer from the supplied k8s object's metadata.
Types ¶
type APIFinalizer ¶
type APIFinalizer struct {
// contains filtered or unexported fields
}
An APIFinalizer manages the lifecycle of a finalizer on a k8s object.
func NewAPIFinalizer ¶
func NewAPIFinalizer(c client.Client, finalizer, reconcilerName string) *APIFinalizer
NewAPIFinalizer returns a new APIFinalizer.
func (*APIFinalizer) AddFinalizer ¶
AddFinalizer to the supplied Managed resource.
func (*APIFinalizer) RemoveFinalizer ¶
Click to show internal directories.
Click to hide internal directories.