predicates

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateByMetadata

func CreateOrUpdateByMetadata(labels map[string]string, annotations map[string]string) (predicate.Predicate, error)

CreateOrUpdateByMetadata returns a predicate that filters Create and Update events based on labels or annotations.

func DeleteByMetadata

func DeleteByMetadata(labels map[string]string, annotations map[string]string) (predicate.Predicate, error)

DeleteByMetadata returns a predicate that filters Delete events based on labels or annotations.

func Log

func Log(log logr.Logger, logIgnored bool, p ...predicate.Predicate) predicate.Predicate

Log returns a predicate that adds a logger to the given predicates so that processed events can be logged based on the loglevel. Events ignored by the input predicates are only logged when logIgnored is true. The return value of the input predicates is not changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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