Documentation
¶
Overview ¶
Package predicate defines Predicates used by Controllers to filter Events before they are provided to EventHandlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IgnoreDeletionPredicate ¶
IgnoreDeletionPredicate implements a default delete predicate function which always return false.
This predicate will ignore the delete events, if finalizer is being used for delete protection on objects, this predicate is recommended because it will avoid the last invalid reconciliation triggered by delete event.
Controller.Watch(
&source.Kind{Type: v1.MyCustomKind}, &handler.EnqueueRequestForObject{}, predicate.IgnoreDeletionPredicate{}, )
func (IgnoreDeletionPredicate) Delete ¶
func (IgnoreDeletionPredicate) Delete(e event.DeleteEvent) bool
Click to show internal directories.
Click to hide internal directories.