Documentation
¶
Index ¶
- func DefaultPredicates[T metav1.Object]() predicate.TypedPredicate[T]
- func DeprecatedCommonPredicates[T metav1.Object]() predicate.TypedPredicate[T]
- func GlobalResyncAwareGenerationChangePredicate[T metav1.Object]() predicate.TypedPredicate[T]
- func IgnoreDeletedPredicate[T metav1.Object]() predicate.TypedPredicate[T]
- func ReadyTransitionPredicate[T any](ready ReadyFunc[T]) predicate.Predicate
- func SelectNamespacesPredicate(namespaces []string) predicate.Funcs
- func SkipAnnotationRemovedPredicate[T metav1.Object]() predicate.TypedPredicate[T]
- type ReadyFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPredicates ¶ added in v2.8.0
func DefaultPredicates[T metav1.Object]() predicate.TypedPredicate[T]
DefaultPredicates avoid spurious after deletion or finalizer changes handling
func DeprecatedCommonPredicates ¶ added in v2.8.0
func DeprecatedCommonPredicates[T metav1.Object]() predicate.TypedPredicate[T]
DeprecatedCommonPredicates returns the predicate which filter out the changes done to any field except for spec (e.g. status) Also we should reconcile if finalizers have changed (see https://blog.openshift.com/kubernetes-operators-best-practices/) This will be phased out gradually to be replaced by DefaultPredicates
func GlobalResyncAwareGenerationChangePredicate ¶ added in v2.8.0
func GlobalResyncAwareGenerationChangePredicate[T metav1.Object]() predicate.TypedPredicate[T]
GlobalResyncAwareGenerationChangePredicate reconcile on unfrequent global resyncs or on spec generation changes, but ignore finalizer changes
func IgnoreDeletedPredicate ¶ added in v2.8.0
func IgnoreDeletedPredicate[T metav1.Object]() predicate.TypedPredicate[T]
IgnoreDeletedPredicate ignore after deletion handling, use unless some after deletion cleanup is needed
func ReadyTransitionPredicate ¶ added in v2.12.0
ReadyTransitionPredicate filters out only those objects where the previous oldObject was not ready, but the new one is, or the object was deleted.
func SkipAnnotationRemovedPredicate ¶ added in v2.12.0
func SkipAnnotationRemovedPredicate[T metav1.Object]() predicate.TypedPredicate[T]
SkipAnnotationRemovedPredicate reconciles on updates when the skip reconcile annotation is removed or changed