docs: event filter page#3467
Open
csviri wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new documentation page describing Java Operator SDK event filters (types, configuration for primary/secondary resources, and default/internal filter behavior) and wires it into the documentation index so it’s discoverable under Advanced Features.
Changes:
- Introduce a new “Event filters” documentation page covering filter interfaces, composition, and configuration patterns.
- Document default (internal) update filters and how to disable them (
defaultFilters = false). - Add the new page to the Documentation section’s Advanced Features list.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/content/en/docs/documentation/event-filters.md | New documentation page explaining event filter types, configuration, and default/internal filter behavior. |
| docs/content/en/docs/documentation/_index.md | Adds navigation entry for the new “Event filters” page under Advanced Features. |
Comment on lines
+60
to
+62
| // reconcile only if the value actually changed | ||
| return !newResource.getSpec().getValue().equals(SKIP_VALUE); | ||
| } |
Comment on lines
+82
to
+83
| .withOnUpdateFilter( | ||
| (newCM, oldCM) -> !newCM.getData().get(VALUE_KEY).equals(SKIP_VALUE)) |
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
metacosm
reviewed
Jul 3, 2026
| your operator efficient by avoiding needless reconciliations. | ||
|
|
||
| Filters apply both to the **primary resource** (the resource your `Reconciler` manages) and to any | ||
| **secondary resources** watched through an [`InformerEventSource`](eventing.md#informereventsource). |
Collaborator
There was a problem hiding this comment.
Maybe it's worth pointing that for non-Kubernetes resources, there's no need for filtering because it should be the responsibility of the EventSource to only emit relevant events?
xstefank
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Attila Mészáros a_meszaros@apple.com