improve: eager informer start check by csviri · Pull Request #3275 · operator-framework/java-operator-sdk
Conversation
this is important for dynamic event source registration to not reindex resources
Signed-off-by: Attila Mészáros a_meszaros@apple.com
this is important for dynamic event source registration to not reindex resources Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Copilot AI review requested due to automatic review settings
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the eager start check in the InformerEventSource class to prevent unnecessary re-indexing of resources during dynamic event source registration. The change adds an early return guard in the start() method that checks if the event source is already running before proceeding with resource initialization.
Changes:
- Added an early return check in
InformerEventSource.start()to prevent the re-indexing operation when the event source is already running
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