◐ Shell
clean mode source ↗

improve: eager informer start check by csviri · Pull Request #3275 · operator-framework/java-operator-sdk

Conversation

@csviri

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

April 7, 2026 14:03

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

xstefank

3 participants

@csviri @xstefank