predicates

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasBasicAnnotationChanged

func HasBasicAnnotationChanged(old *string, new *string) bool

func MakeNamePredicate

func MakeNamePredicate(names ...string) predicate.Predicate

MakeNamePredicate creates a predicate that matches resources with a specific name only

func MakeNamespacePredicate

func MakeNamespacePredicate(namespaces ...string) predicate.Predicate

MakeNamespacePredicate creates a predicate that matches resources in a specific namespace only

func MakeSelectAnnotationChangedPredicate

func MakeSelectAnnotationChangedPredicate(annotations map[string]HasAnnotationChanged) predicate.Predicate

MakeSelectAnnotationChangedPredicate creates a selectAnnotationChangedPredicate watching for changes to select annotations. annotations is a map of annotations to HasAnnotationChanged handlers which define if the annotation has been changed in a way we care about.

Types

type HasAnnotationChanged

type HasAnnotationChanged func(old *string, new *string) bool

Jump to

Keyboard shortcuts

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