Documentation ¶
Index ¶
- func EvalGeneric(obj client.Object, predicates ...predicate.Predicate) bool
- func ExtensionStatusChanged() predicate.Predicate
- func ForEventTypes(events ...EventType) predicate.Predicate
- func HasName(name string) predicate.Predicate
- func IsDeleting() predicate.Predicate
- func ManagedResourceConditionsChanged() predicate.Predicate
- func Not(p predicate.Predicate) predicate.Predicate
- func RelevantConditionsChanged(getConditionsFromObject func(obj client.Object) []gardencorev1beta1.Condition, ...) predicate.Predicate
- type EventType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalGeneric ¶
EvalGeneric returns true if all predicates match for the given object.
func ExtensionStatusChanged ¶ added in v1.60.0
ExtensionStatusChanged returns a predicate which returns true when the status of the extension object has changed.
func ForEventTypes ¶ added in v1.57.0
ForEventTypes is a predicate which returns true only for the provided event types.
func HasName ¶
HasName returns a predicate which returns true when the object has the provided name.
func IsDeleting ¶
IsDeleting is a predicate for objects having a deletion timestamp.
func ManagedResourceConditionsChanged ¶ added in v1.59.0
ManagedResourceConditionsChanged returns a predicate which returns true if the status/reason/message of the Resources{Applied,Healthy,Progressing} condition of the ManagedResource changes.
func RelevantConditionsChanged ¶ added in v1.58.0
func RelevantConditionsChanged( getConditionsFromObject func(obj client.Object) []gardencorev1beta1.Condition, relevantConditionTypes ...gardencorev1beta1.ConditionType, ) predicate.Predicate
RelevantConditionsChanged returns true for all events except for 'UPDATE'. Here, true is only returned when the status, reason or message of a relevant condition has changed.