Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add stream-timeout option to
kubectl exec
This patch implements a timeout option for remote streams. This allows a maximum time to be specified for a remote shell to remain open. If a `--stream-timeout` value `> 0` is provided, the stream executor will not wait for the `stdout` and `stderr` streams of a remote shell to finish copying, but will rather close the stream and exit with error `Timeout exceeded for this operation`. Although `kubectl exec` already supports the global `request-timeout` option as well as the local `--timeout` option, the former is only for making ther inital request with a `restclient`, and the latter is the amount of time to wait before a pod is retrieved. Therefore, it was necessary to introduce a third timeout option for specifically timing out the command once inside of a remote shell.
- Loading branch information
1 parent
12147a3
commit 7f7e699
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters