predicate

package
v0.0.0-...-78585f7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EitherUpdateWhenGenerationNotChangedOrDelete

type EitherUpdateWhenGenerationNotChangedOrDelete struct {
}

EitherUpdateWhenGenerationNotChangedOrDelete implements a predicate that triggers reconciles either for updates when generation was not changed or for deletion

func (EitherUpdateWhenGenerationNotChangedOrDelete) Create

Create implements Predicate

func (EitherUpdateWhenGenerationNotChangedOrDelete) Delete

Delete implements Predicate

func (EitherUpdateWhenGenerationNotChangedOrDelete) Generic

Generic implements Predicate

func (EitherUpdateWhenGenerationNotChangedOrDelete) Update

Update implements default UpdateEvent filter for validating no generation change

type LabelsAndGenerationPredicate

type LabelsAndGenerationPredicate struct {
	predicate.Funcs
}

LabelsAndGenerationPredicate is based on the default predicate functions but overrides the Update function to only return true if either the labels or generation have changed, status changes won't cause reconciliation

func (LabelsAndGenerationPredicate) Update

Update only returns true if either the labels or generation have changed

Jump to

Keyboard shortcuts

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