watch

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func ReadyTransitionPredicate[T any](ready ReadyFunc[T]) predicate.Predicate

ReadyTransitionPredicate filters out only those objects where the previous oldObject was not ready, but the new one is, or the object was deleted.

func SelectNamespacesPredicate

func SelectNamespacesPredicate(namespaces []string) predicate.Funcs

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

Types

type ReadyFunc added in v2.12.0

type ReadyFunc[T any] func(obj T) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL