Skip to content

improve: eager informer start check#3275

Open
csviri wants to merge 1 commit intooperator-framework:mainfrom
csviri:es-start-check
Open

improve: eager informer start check#3275
csviri wants to merge 1 commit intooperator-framework:mainfrom
csviri:es-start-check

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Apr 7, 2026

this is important for dynamic event source registration to not reindex resources

Signed-off-by: Attila Mészáros [email protected]

this is important for dynamic event source registration to not reindex resources

Signed-off-by: Attila Mészáros <[email protected]>
Copilot AI review requested due to automatic review settings April 7, 2026 14:03
@openshift-ci openshift-ci bot requested review from metacosm and xstefank April 7, 2026 14:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants