-
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
add options to configure k8s client qps/burst #28151
Conversation
This pull request does not have a backport label. Could you fix it @newly12? 🙏
NOTE: |
💚 Build Succeeded
Expand to view the summary
Build stats
❕ Flaky test reportNo test was executed to be analysed. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Pinging @elastic/integrations (Team:Integrations) |
/test |
@@ -83,7 +83,7 @@ func GetWatcher(base mb.BaseMetricSet, resource kubernetes.Resource, nodeScope b | |||
return nil, nil | |||
} | |||
|
|||
client, err := kubernetes.GetKubernetesClient(config.KubeConfig) | |||
client, err := kubernetes.GetKubernetesClient(config.KubeConfig, nil) |
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.
Why we don't add the options here too?
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.
good cache. Let me check how this should be done.
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.
added
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.
Nice, thank you for working on this! I would consider it mergeable if we have changelogs for beats and agent as well as the respective documentation parts to expose the settings to the users :).
@ChrsMark Thanks for checking. Docs are updated. I've moved qps/burst options to |
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! Thank you for adding this, really valuable!
/test |
/test |
CI failure is unrelated, I will merge this one. Thank you @newly12 again! |
Enhancement
What does this PR do?
add options to configure k8s client qps/burst
Why is it important?
Accelerate autodiscover pod event processing
Checklist
I have commented my code, particularly in hard-to-understand areasI have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs