-
Notifications
You must be signed in to change notification settings - Fork 460
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
Timeout fixes #668
Timeout fixes #668
Conversation
4019c08
to
ea40d4c
Compare
Before, we were always multiplying the timeout by time.Seconds, instead of using the time.Duration provided to us Signed-off-by: Peter Hunt <pehunt@redhat.com>
there already exists a top level `-t` option for a timeout for connecting to the server If we overload `-t`, users (read: I) could get confused and specify it in the wrong place. Change the `--timeout` option for cancelling the context to `cancel-timeout` with the short option of `-T` Signed-off-by: Peter Hunt <pehunt@redhat.com>
ea40d4c
to
14b15fe
Compare
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.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, saschagrunert 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 |
What type of PR is this?
/kind bug
/kind api-change
What this PR does / why we need it:
Adds two fixes to the runp/create
--timeout
feature1: correctly use the timeout passed in by not multiplying it by time.Seconds (a relic from when it was originally specified as an int, oops)
2: change the option to
--cancel-timeout
and-T
to not overload--timeout
and-t
(Which has a different meaning in the top level flags, and could confuse users)Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?