Allow capture_all
to be passed to stream()
#2302
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
capture_all
to be passed to stream()
#2302
What is the feature and why do you need it:
I'd like to be able to set
capture_all=False
when making astream(client.connect_get_namespaced_pod_exec, ...)
call.capture_all
is a parameter which yourWSClient
initialiser accepts (source).I sometimes stream large amounts of data over stdout, something like this:
I want to avoid storing all the stdout in memory at any given point. At present, unless I do
ws_client.read_all()
inside my loop, all the stdout+stderr builds up inWSClient._all
.Describe the solution you'd like to see:
The easiest approach looks to be: adapt the
_websocket_request()
function (source) topop()
capture_all
fromkwargs
like is already done withbinary
.Apologies if I'm missing a trick here and thanks for the invaluable library!
The text was updated successfully, but these errors were encountered: