-
Notifications
You must be signed in to change notification settings - Fork 111
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
Use only the required informers #1210
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1210 +/- ##
==========================================
- Coverage 81.88% 81.68% -0.21%
==========================================
Files 137 137
Lines 11450 11475 +25
==========================================
- Hits 9376 9373 -3
- Misses 1543 1562 +19
- Partials 531 540 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pkg/internal/kube/informer.go
Outdated
informerFactory = informers.NewSharedInformerFactory(client, resyncTime) | ||
} else { | ||
fieldSelector := fields.OneTermEqualSelector("spec.nodeName", restrictNode).String() | ||
k.log.Info("using field selector", "selector", fieldSelector) |
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.
do we want to keep that as info? or debug would be better?
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.
you are right. Moving to debug would have more sense
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.
LGTM, this will make Beyla much more efficient in large clusters!
Based on top of Marc's PR: https://github.com/grafana/beyla/pull/1209/files
It would narrow the scope of the informers:
Addresses #1198 and #824