predicates

package
v0.0.0-...-4e25689 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerationUnchangedOnUpdatePredicate

type GenerationUnchangedOnUpdatePredicate struct {
	predicate.Funcs
}

GenerationUnchangedOnUpdatePredicate implements a default update predicate function on Generation unchanged.

This predicate will skip any event except updates. In the case of update events that have a change in the object's metadata.generation field, those events will be skipped as well. The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object. This allows a controller to ignore update events where the spec has unchanged, and only the metadata and/or status fields are changed.

func (GenerationUnchangedOnUpdatePredicate) Create

Create implements default CreateEvent filter for validating generation change.

func (GenerationUnchangedOnUpdatePredicate) Delete

Delete implements default DeleteEvent filter for validating generation change.

func (GenerationUnchangedOnUpdatePredicate) Generic

Generic implements default GenericEvent filter for validating generation change.

func (GenerationUnchangedOnUpdatePredicate) Update

Update implements default UpdateEvent filter for validating generation change.

type GenerationUnchangedPredicate

type GenerationUnchangedPredicate struct {
	predicate.Funcs
}

GenerationUnchangedPredicate implements a default update predicate function on Generation unchanged.

This predicate will skip update events that have a change in the object's metadata.generation field. The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object. This allows a controller to ignore update events where the spec has unchanged, and only the metadata and/or status fields are changed.

func (GenerationUnchangedPredicate) Update

Update implements default UpdateEvent filter for validating generation change.

type IgnoreAllPredicate

type IgnoreAllPredicate struct {
	predicate.Funcs
}

IgnoreAllPredicate implements a default update predicate function to ignore all events.

This predicate will skip any kind of event. It will be useful in cases in which a For clause has to be defined but no reconcile should happen over those resources.

func (IgnoreAllPredicate) Create

Create implements default CreateEvent filter to ignore any resource create.

func (IgnoreAllPredicate) Delete

Delete implements default DeleteEvent filter to ignore any resource delete.

func (IgnoreAllPredicate) Generic

Generic implements default GenericEvent filter to ignore any resource generic.

func (IgnoreAllPredicate) Update

Update implements default UpdateEvent filter to ignore any resource update.

type NewObjectsPredicate

type NewObjectsPredicate struct {
	predicate.Funcs
}

NewObjectsPredicate implements a default update predicate function on Generation unchanged.

This predicate will skip update events that have a change in the object's metadata.generation field. The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object. This allows a controller to ignore update events where the spec has unchanged, and only the metadata and/or status fields are changed.

func (NewObjectsPredicate) Delete

Delete implements default DeleteEvent filter to ignore any resource delete.

func (NewObjectsPredicate) Generic

Generic implements default GenericEvent filter to ignore any resource generic.

func (NewObjectsPredicate) Update

Update implements default UpdateEvent filter to ignore any resource update.

Jump to

Keyboard shortcuts

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