-
Notifications
You must be signed in to change notification settings - Fork 218
refactor: clean up informer configuration classes #2470
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
Conversation
metacosm
commented
Jul 12, 2024
- refactor: move @InformerConfig to more appropriate package
- refactor: move InformerConfigHolder to appropriate package
- chore: remove unneeded code & dependencies
- refactor: InformerConfiguration to InformerEventSourceConfiguration
- refactor: rename inner InformerConfigurationBuilder to simply Builder
- refactor: rename InformerConfig and associated field to Informer
- refactor: rename InformerConfigHolder to InformerConfiguration
|
||
private ControllerConfigurationOverrider(ControllerConfiguration<R> original) { | ||
this.finalizer = original.getFinalizerName(); | ||
this.generationAware = original.isGenerationAware(); | ||
this.config = InformerConfigHolder.builder(original.getResourceClass()) | ||
this.config = InformerConfiguration.builder(original.getResourceClass()) |
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.
Wouldn't be it confusing that there is now an InformerEventSourceConfiguration
renamed from InformerConfiguration
, but there is now a new InformerConfiguration
for something else?
Also an @Informer
that is basically the new InformerConfiguration
just represented by annotation?
Not what would be better, just might be confusing.
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.
We would definitely need to document it and add it to the javadoc as well so that the information is available contextually. I think this cleans things nicely this way, though, because having multiple things names InformerConfig-something was getting quite confusing, especially when some of them were not even related to informers at all…
5773463
to
0b20864
Compare
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
0b20864
to
be4cb47
Compare
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>
* chore: set version to 5.0.0-SNAPSHOT (#2200) Signed-off-by: Attila Mészáros <[email protected]> * improve: replace current formatting plugins with spotless plugin (#2302) Signed-off-by: Attila Mészáros <[email protected]> * fix: format after rebase Signed-off-by: Attila Mészáros <[email protected]> * bump: chore use slf4j v2 (#2406) Signed-off-by: Attila Mészáros <[email protected]> * feat: allow returning additional information from conditions (#2426) Fixes #2424. --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> * refactor: move @InformerConfig to more appropriate package Signed-off-by: Chris Laprun <[email protected]> * refactor: move InformerConfigHolder to appropriate package Signed-off-by: Chris Laprun <[email protected]> * chore: remove unneeded code & dependencies Signed-off-by: Chris Laprun <[email protected]> * refactor: InformerConfiguration to InformerEventSourceConfiguration Signed-off-by: Chris Laprun <[email protected]> * refactor: rename inner InformerConfigurationBuilder to simply Builder Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfig and associated field to Informer Signed-off-by: Chris Laprun <[email protected]> * refactor: rename InformerConfigHolder to InformerConfiguration Signed-off-by: Chris Laprun <[email protected]> --------- Signed-off-by: Attila Mészáros <[email protected]> Signed-off-by: Chris Laprun <[email protected]> Co-authored-by: Attila Mészáros <[email protected]>