-
Notifications
You must be signed in to change notification settings - Fork 386
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 controller rest config timeout to 30secs #3112
Conversation
Hi @sankar17. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
@sankar17 can you please add a release note in the PR description? Check the PR body template for the structure. |
pkg/server/server.go
Outdated
@@ -387,7 +387,8 @@ func (s *Server) Run(ctx context.Context) error { | |||
// TODO: split apart everything after this line, into their own commands, optional launched in this process | |||
|
|||
controllerConfig := rest.CopyConfig(s.IdentityConfig) | |||
|
|||
// Setting the default restConfig timeout to 30 seconds to avoid any client is waiting infinitely | |||
controllerConfig.Timeout = time.Second * 30 |
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.
Wondering, we should probably set that much earlier. IdentityConfig comes the loopback config if I am not mistaken. So maybe already the loopback config needs this timeout?
220c3ee
to
fcb7529
Compare
/retest |
Signed-off-by: sankarm <sankarm@vmware.com>
ec591b4
to
358d945
Compare
/lgtm |
LGTM label has been added. Git tree hash: defa1193592ed6ad1a175a5eb0c51e05d41648db
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Configure the controller rest config timeout to 30 seconds by default to avoid any client stuck at infinitely.