Skip to content
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

User-configurable request timeouts #970

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

yankcrime
Copy link
Member

@yankcrime yankcrime commented Oct 18, 2019

What this PR does / why we need it:
Add an option (--request-timeout) to allow the user to specify the KUDO client's request
timeout. The hardcoded default of 3 seconds causes problems for users whose connectivity to a target service involves relatively significant amounts of latency.

Mirror the behaviour of kubectl by copying the option itself and setting this to by default to 0 (no timeout).

Fixes #955

@yankcrime yankcrime changed the title 🚧 [WIP] User-configurable request timeouts 🚧 User-configurable request timeouts Oct 18, 2019
@yankcrime yankcrime marked this pull request as ready for review October 18, 2019 14:58
@gerred
Copy link
Member

gerred commented Oct 18, 2019

@yankcrime wdyt about doing one more refactoring here to create a client function that just takes the settings struct (just a helper in the CLI packages)? DRY up the longer arity function a little bit.

@yankcrime yankcrime force-pushed the 955_install_timeout branch 2 times, most recently from 986c34a to dd0b858 Compare October 22, 2019 12:14
@yankcrime
Copy link
Member Author

@gerred How's this look?

Add an option to allow the user to specify the KUDO client's request
timeout.  The hardcoded default of 3 seconds causes problems for users
whose connectivity to a target service involves relatively significant amounts
of latency.

Mirror the behaviour of `kubectl` by setting this to 0.
@gerred
Copy link
Member

gerred commented Oct 24, 2019

lgtm @yankcrime

@gerred gerred merged commit dbbb207 into kudobuilder:master Oct 24, 2019
@yankcrime yankcrime deleted the 955_install_timeout branch October 24, 2019 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable configurable timeout for kudo install command
2 participants