WebSocket connections make use of environment vars for PROXY #2321
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
What happened (please include outputs or screenshots):
The regular k8s client call does not make use of the environment vars for proxies, instead expecting you to pass it explicitly to the config. However, the websocket client will make use of those, which can be confusing.
What you expected to happen:
The regular and websocket clients should behave the same.
How to reproduce it (as minimally and precisely as possible):
The script is able to ignore the
HTTPS_PROXY
and check for the existence of the busybox pod, then create it. But the part that uses a websocket/stream to do theexec
fails as it can't connect to the dummy proxy.Anything else we need to know?:
Environment:
kubectl version
): v1.27.16+03a907cpython --version
) 3.12.8pip list | grep kubernetes
) 31.0.0The text was updated successfully, but these errors were encountered: