tomplus / kubernetes_asyncio

Python asynchronous client library for Kubernetes http://kubernetes.io/
Apache License 2.0
364 stars 71 forks source link

Add example for using the exec endpoint with stdin #290

Closed philipsd6 closed 3 months ago

philipsd6 commented 1 year ago

As noted in #174, the synchronous version of this package has the pod_exec.py example, but only the non-interactive part of that is re-implemented in examples/example3.py.

Is it possible to implement the interactive version with this library as well? My use case is to start psql in the container and execute various ddl statements from an operator (based on kopf) and emit the responses.

tomplus commented 1 year ago

Sure, it's possible but it has to be implemented first https://github.com/tomplus/kubernetes_asyncio/issues/12

herman-ai commented 10 months ago

@tomplus is #12 being actively worked on? I would also like this feature for my project.

tomplus commented 9 months ago

@herman-ai I'm not working on it right now, feel free to contribute if you want.