-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Handle k8s.io/client-go warnings #18961
Comments
Pinging @elastic/integrations (Team:Integrations) |
Pinging @elastic/integrations-platforms (Team:Platforms) |
Thanks for opening, I see from the related issues that we cannot really disable client-go logging. I wonder if, as an alternative, there is a way to check if |
That sounds good @exekias! Better we could "re-implement" the
instead of calling client.BuildConfigFromFlags() at beats/libbeat/common/kubernetes/util.go Line 52 in 5bfcc9c
|
That sounds good to me, good find! I only expect further warnings if you are actually in a kubernetes scenario, where these warnings are still not ideal, but more reasonable |
With #18817 we upgraded the dependency to
k8s.io/client-go
which resulted in having some warnings of the client now coming in the output of Beats whenever a k8s client is trying to get initialised. A common case for this is running Metricbeat which hasadd_kubernetes_metadata
enabled by default which will result in output like this one:This is normal in terms of functionality when the k8s configuration is not set up, however it is quite annoying and we should handle these outputs properly.
Related to kubernetes/client-go#18 kubernetes/client-go#610
cc: @exekias
The text was updated successfully, but these errors were encountered: