watch

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 5 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() predicate.Funcs

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 SelectNamespacesPredicate

func SelectNamespacesPredicate(namespaces []string) predicate.Funcs

Types

This section is empty.

Jump to

Keyboard shortcuts

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