predicate

package
v0.0.0-...-afc9998 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package predicate defines custom predicates used to filter event triggers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePredicate

type DeletePredicate struct {
	predicate.Funcs
}

DeletePredicate will only respond to delete events where the object has installer labels

func (DeletePredicate) Create

func (DeletePredicate) Delete

func (DeletePredicate) Generic

func (DeletePredicate) Update

type GenerationChangedPredicate

type GenerationChangedPredicate struct {
	predicate.Funcs
}

GenerationChangedPredicate will skip update events that have no 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 is unchanged, and only the metadata and/or status fields are changed. This predicate is customized to not ignore certain annotations significant to the multiclusterhub reconciler.

func (GenerationChangedPredicate) Update

Update implements default UpdateEvent filter for validating generation change

type InstallerLabelPredicate

type InstallerLabelPredicate struct {
	predicate.Funcs
}

InstallerLabelPredicate will only respond to events where the object has installer labels

func (InstallerLabelPredicate) Create

TODO: Use controller-runtime's 'NewPredicateFuncs' to simplify once available

func (InstallerLabelPredicate) Delete

func (InstallerLabelPredicate) Generic

func (InstallerLabelPredicate) Update

Jump to

Keyboard shortcuts

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