predicates

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconcilateAtChangedPredicate added in v0.6.0

type ReconcilateAtChangedPredicate struct {
	ReconcileRequestedPredicate
}

Deprecated, use ReconcileRequestedPredicate instead.

type ReconcileRequestedPredicate added in v0.6.2

type ReconcileRequestedPredicate struct {
	predicate.Funcs
}

ReconcileRequestedPredicate implements an update predicate function for meta.ReconcileAtAnnotation changes.

This predicate will skip update events that have no meta.ReconcileAtAnnotation change. It is intended to be used in conjunction with the predicate.GenerationChangedPredicate, as in the following example:

Controller.Watch(

&source.Kind{Type: v1.MyCustomKind},
&handler.EnqueueRequestForObject{},
predicate.Or(predicate.GenerationChangedPredicate{}, predicates.ReconcileRequestedPredicate{}))

func (ReconcileRequestedPredicate) Update added in v0.6.2

Update implements the default UpdateEvent filter for validating meta.ReconcileAtAnnotation changes.

Jump to

Keyboard shortcuts

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