Documentation ¶
Index ¶
- func HasBasicAnnotationChanged(old *string, new *string) bool
- func MakeNamePredicate(names ...string) predicate.Predicate
- func MakeNamespacePredicate(namespaces ...string) predicate.Predicate
- func MakeSelectAnnotationChangedPredicate(annotations map[string]HasAnnotationChanged) predicate.Predicate
- type HasAnnotationChanged
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeNamePredicate ¶
MakeNamePredicate creates a predicate that matches resources with a specific name only
func MakeNamespacePredicate ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.