Documentation
¶
Index ¶
- func AddTypeAndClassPredicates(predicates []predicate.Predicate, ...) []predicate.Predicate
- func EvalGeneric(obj client.Object, predicates ...predicate.Predicate) bool
- func ForEventTypes(events ...EventType) predicate.Predicate
- func GetExtensionLastOperation(obj client.Object) *gardencorev1beta1.LastOperation
- func HasClass(extensionClasses ...extensionsv1alpha1.ExtensionClass) predicate.Predicate
- func HasName(name string) predicate.Predicate
- func HasOneOfTypesPredicate(extensionTypes ...string) predicate.Predicate
- func HasType(typeName string) predicate.Predicate
- func IsDeleting() predicate.Predicate
- func LastOperationChanged(getLastOperation func(client.Object) *gardencorev1beta1.LastOperation) predicate.Predicate
- func ManagedResourceConditionsChanged() predicate.Predicate
- func ReconciliationFinishedSuccessfully(oldLastOperation, newLastOperation *gardencorev1beta1.LastOperation) bool
- 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 AddTypeAndClassPredicates ¶ added in v1.121.0
func AddTypeAndClassPredicates(predicates []predicate.Predicate, extensionClass extensionsv1alpha1.ExtensionClass, extensionTypes ...string) []predicate.Predicate
AddTypeAndClassPredicates returns a new slice which contains a HasClass, a type predicate and the given `predicates`. If more than one extensionTypes is given they are combined with an OR.
func EvalGeneric ¶
EvalGeneric returns true if all predicates match for the given object.
func ForEventTypes ¶ added in v1.57.0
ForEventTypes is a predicate which returns true only for the provided event types.
func GetExtensionLastOperation ¶ added in v1.75.0
func GetExtensionLastOperation(obj client.Object) *gardencorev1beta1.LastOperation
GetExtensionLastOperation returns the LastOperation of the passed extension object.
func HasClass ¶ added in v1.121.0
func HasClass(extensionClasses ...extensionsv1alpha1.ExtensionClass) predicate.Predicate
HasClass filters the incoming objects for the given extension classes. For backwards compatibility, if the class is unset in the extension object, it is assumed that the extension belongs to a shoot cluster. An empty 'extensionClass' is likewise treated to be of class 'shoot'.
func HasName ¶
HasName returns a predicate which returns true when the object has the provided name.
func HasOneOfTypesPredicate ¶ added in v1.121.0
HasOneOfTypesPredicate returns a new slice which contains a type predicate. If more than one extensionTypes is given they are combined with an OR.
func HasType ¶ added in v1.121.0
HasType filters the incoming OperatingSystemConfigs for ones that have the same type as the given type.
func IsDeleting ¶
IsDeleting is a predicate for objects having a deletion timestamp.
func LastOperationChanged ¶ added in v1.75.0
func LastOperationChanged(getLastOperation func(client.Object) *gardencorev1beta1.LastOperation) predicate.Predicate
LastOperationChanged returns a predicate which returns true when the LastOperation of the passed object is changed.
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 ReconciliationFinishedSuccessfully ¶ added in v1.77.0
func ReconciliationFinishedSuccessfully(oldLastOperation, newLastOperation *gardencorev1beta1.LastOperation) bool
ReconciliationFinishedSuccessfully is a helper function for checking whether the last operation indicates a successful reconciliation.
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.