-
Notifications
You must be signed in to change notification settings - Fork 218
Refined Interface of EventSource
and EventSourceManager
#597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
898e2c2
WIP
csviri be4e5cf
Addressing Custom Resource by Name and Namespace refactor + Informer …
csviri b2ab4b9
Build is fixed, (test failing)
csviri 9145b52
Test fixes
csviri 4ef27bf
Merge branch 'master' into informer-creventsource
csviri 34cc2a1
minor update
csviri 4b15974
EventSourceManager small fix
csviri 77033e6
Merge branch 'access-event-source-manager' into informer-creventsource
csviri e1b5926
Unit tests fixed
csviri e7d1b99
fix: DefaultEventHandler init from EventSourceManager
csviri a1f92c6
fix: custom resource selector test improvement
csviri e928a3e
fix: wip test imrpovements
csviri f35a340
fix: test improvements
csviri 5d5817e
fix: further improvements
csviri 544ce35
Merge branch 'v2' into informer-creventsource
csviri 75ad7d2
fix: build
csviri 7012fb3
feature: add mvn jar to gitignore
csviri 3746122
Exposing CustomResourceEventSource and informers
csviri f0f2e91
fix: cleanup
csviri 6638a48
fix: remove caching optimization since it not possible anymore with i…
csviri 1d786ef
fix: formatting
csviri a5343b7
refactor: make name/namespace final
metacosm 9e0430a
feature: Simple label selector support
csviri 7f48b9a
Merge branch 'informer-creventsource' of github.com:java-operator-sdk…
csviri 0aa29a1
fix: formatting
csviri 3ad2fc5
fix: code inspection reports
csviri 86b8185
Merge branch 'v2' into informer-creventsource
csviri 92d3ed3
fix: merge from v2
csviri d194d25
fix: removed most deprecated apis
csviri 2e8f219
chore: renaming vars named k8sClient to kubernetsClient
iocanel 9ebfff0
chore(deps): bump jandex-maven-plugin from 1.1.1 to 1.2.1 (#592)
dependabot[bot] f1f3867
chore(deps-dev): bump mockito-core from 3.12.4 to 4.0.0 (#591)
dependabot[bot] b99ff10
feature: Build PR on v2
csviri 326f82f
chore(ci): use Java 17
metacosm 98e3def
chore(ci): use only Temurin distribution
metacosm a03cfb9
fix: Updated informer mapping to CustomResourceID
csviri 746f0c1
chore: add generics to PostExecutionControl to reduce IDEs noise (#594)
lburgazzoli bb6c00e
chore: polish the junit5 extension (#593)
lburgazzoli 80e8238
fix: EventSourceManager API wip
csviri bbecf4c
fix: code review fixes
csviri 26b1c3e
Merge branch 'master' into informer-creventsource
csviri f350f46
Merge branch 'informer-creventsource' into event-source-register-as-list
csviri d3e2469
fix: improvements of Event Source related APIs
csviri 974c0eb
Merge branch 'v2' into event-source-register-as-list
csviri b8478e2
fix: remarks from code review
csviri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also make it possible to remove an
EventSource
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should not. So were thinking how to handle some dynamic registration and de-registration of event sources. But that would make sense only per custom resource. Since we want to cover events for all related custom resources which are in differenet lifecycle state. So deregistering an event source will mean that new custom resources would not receive events about related dependent resource anymore, even the custom resource was just created.
I see it rather this way: notifications for event sources about custom resource lifecycle, what we already partially cover:
cleanupForCustomResource
when a custom resource delete,customResourceCreated
. So event source could execute some related logic. Like register a webhook or etc. This would make it very general. But did not want to do it until we have some actual request. We already have for the cleanup.