-
Notifications
You must be signed in to change notification settings - Fork 647
Use a default user agent 'kuberay-operator' instead of the default user-agent from controller-runtime #1982
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
Conversation
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
|
@kevin85421 PTAL |
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.
Would you mind sharing more details on why we need this change? I don't have the related context. Thanks!
It's mainly for auditing HTTP traffic in kube-apiserver. If we use the default user-agent from controller-runtime ( |
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.
How do I manually test this PR? I checked the apiserver logs in my local Kind cluster by running kubectl logs -n kube-system kube-apiserver-kind-control-plane, but I didn't find any log message similar to [...httplog.go:131] "HTTP" verb="PUT" .....
You need to increase log verbosity to see the HTTP logs. Here's the kind cluster config I used: |
Co-authored-by: Kai-Hsun Chen <kaihsun@apache.org> Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
|
cc @Yicheng-Lu-llll would you mind reviewing this PR? Thanks! |
…er-agent from controller-runtime (ray-project#1982)

Why are these changes needed?
We are currently using the default controller-runtime user-agent which is
manager/v0.0.0. This PR updates Kuberay's user-agent tokuberay-operator.Note that it does not include the version of kuberay yet, but we should add that in a follow-up PR. Here's example HTTP log from apiserver that shows the new user-agent being used:
Related issue number
Checks