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 global timeout flag #33958
Add global timeout flag #33958
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ import ( | |
"path" | ||
gruntime "runtime" | ||
"strings" | ||
"time" | ||
|
||
"github.com/golang/glog" | ||
|
||
|
@@ -109,6 +110,9 @@ type Config struct { | |
// Rate limiter for limiting connections to the master from this client. If present overwrites QPS/Burst | ||
RateLimiter flowcontrol.RateLimiter | ||
|
||
// The maximum length of time to wait before giving up on a server request. A value of zero means no timeout. | ||
Timeout time.Duration | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about actually setting this field like you do in the core k8s code? I'd expect this patch looks identical to the other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely, will do right now |
||
// Version forces a specific version to be used (if registered) | ||
// Do we need this? | ||
// Version string | ||
|
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.
@kubernetes/kubectl Any comments on the flag name?
--timeout
was already take by commands that use reapers for a different meaning.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.
request-timeout
sounds good to me.