Skip to content

Conversation

Diaphteiros
Copy link
Contributor

What this PR does / why we need it:
Adds predicates that allow to filter for specific event types.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:

Release note:

The `pkg/controller` library now contains the following new predicates:
- OnCreatePredicate() reacts only on create events
- OnDeletePredicate() reacts only on delete events
- OnUpdatePredicate() reacts only on update events
- OnGenericPredicate() reacts only on generic events
- OnEventTypePredicate(eventType) allows to pass in the event type dynamically

@robertgraeff robertgraeff merged commit 9981cd0 into main Sep 19, 2025
8 checks passed
@robertgraeff robertgraeff deleted the event-predicate branch September 19, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants