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
Set User-Agent for HTTP prober requests. #18482
Conversation
Signed-off-by: Rodrigo Chacon <rochacon@gmail.com>
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
Labelling this PR as size/M |
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
3 similar comments
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
PR needs rebase |
https://github.com/kubernetes/kubernetes/pull/20116/files#diff-ca8ccba349ee7f2f0cddbb8305fc86a1 added the ability to specify headers for probes. I think I prefer letting the user setting up the probe determine the user-agent (if any), which they can now do via the API. What do you think? |
Hi @liggitt, setting custom headers on probes is really cool. I would like a default, but overwritable, User-Agent though, to avoid the need to set this header on every controller. Thanks for the update! |
This change adds an User-Agent to HTTP prober, with the following format:
Kubernetes/<version> HTTP-Prober
.This is useful to differentiate requests made by Kubernetes HTTP prober from other Go programs using the default Go HTTP client.
It's my first time playing with Kubernetes source, so I'm trying to keep this as simple as possible.