-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support pods/logs subresource streaming #254
Comments
Nice catch. I think it's not such a big deal. When I've implemented the mint client for the Obviously, the binary stream sent when connecting to I will try to add a test and fix this weekend. |
Line 216 in bf4100b
I think that this needs to accept the query params that |
I see, thanks for the hint. I've created a PR (wip). I'm still considering splitting the pods/exec and pods/log cases for the params, though. The defaults are different and the "allowed params", too... |
Thank you. I like that; it's elegant in re-using what's already there.
That makes sense; most of the clients I could find had separate APIs for exec/connect and logging. It would also allow for a cleaner API when not trying to follow the logs (aka |
Released with 2.3.0 |
I want to watch and follow the logs of a pod in a gen server. I was hoping the following code would work and nothing would be needed:
It will succeed and then fail a moment later with the following error:
Obviously, the log message will be different. That makes sense;
connect
isn't expecting a stream of binary frames. So what's the best way to getpods/logs
support? Should we extendconnect
to handle binary frames and the different query parameters? Or should aK8s.Client.logs()
method exist?The text was updated successfully, but these errors were encountered: