-
Notifications
You must be signed in to change notification settings - Fork 455
fix(loki.source.podlogs): conditionally register field index for spec.nodeName #4617
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
fix(loki.source.podlogs): conditionally register field index for spec.nodeName #4617
Conversation
….nodeName Only register the Kubernetes field index for spec.nodeName when node filtering is enabled. This prevents 'Index with name field:spec.nodeName does not exist' errors when the node_filter configuration is used. The field index is now registered conditionally based on: - nodeFilterEnabled flag is true - getNodeFilterName() returns a non-empty string This optimization avoids unnecessary field index registration when node filtering is not in use, improving performance and preventing runtime errors.
|
I'm not familiar with this issue, but I'm a bit confused looking at the diff - the changelog/description claims this changes behavior when node filter is not configured, but all the diff shows is new behavior when node filter is configured. Can you help me understand? |
|
@dehaansa you are totally right, the description and changelog entry were totally wrong. This pull request enables the field indexing if the node filtering is enabled |
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 was also a bit confused by the description and changelog before you change it.
LGTM thanks
|
Thank you @kalleep :) Do you know when it might be released? |
|
@QuentinBisson If we don't do a patch release this will be release around 2025-11-11 when we are scheduled for our next minor |
|
Thank you :) |
PR Description
Registers the Kubernetes field index for spec.nodeName when node filtering is enabled. This prevents
Index with name field:spec.nodeName does not existerrors when the node_filter configuration is used.Notes to the Reviewer
The field index is registered conditionally (to avoid unnecessary field index registation) based on:
PR Checklist