-
Notifications
You must be signed in to change notification settings - Fork 35
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
Pod.exec stdin never closes #212
Comments
It looks like this has been resolved upstream via the V5 RemoteCommand protocol added in kubernetes/kubernetes#119157. This will be included in Kubernetes v1.29. Once this release is out we need to retest this and make any appropriate changes. We may also need to add a check so that if the user tries to pass stdin on a cluster that is <1.29 they get a warning or error. To close stdin we will need to send the channel ID ( |
Support for We will need to decide what happens when folks are on older Kubernetes versions, maybe a warning or exception if they try and use |
Which project are you reporting a bug for?
kr8s
What happened?
When writing to stdin with
Pod.exec(..., stdin=...)
the stream is never closed. This means if the process being executed is waiting for the stdin file to be closed it will hang forever.This seems to be a limitation of the websocket API in Kubernetes and is being tracked in kubernetes/kubernetes#89899. There is a KEP which should handle fixing this in a future release of Kubernetes kubernetes/enhancements#4016.
The text was updated successfully, but these errors were encountered: