-
Notifications
You must be signed in to change notification settings - Fork 3.3k
WebSocket connections make use of environment vars for PROXY #2321
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
Comments
Additionally, it seems to parse In curl https://curl.se/libcurl/c/CURLOPT_NOPROXY.html you can match a subdomain with just the base domain. ie: putting |
/help |
@yliaog: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/assign |
What type of PR is this? /kind bug What this PR does / why we need it: This PRs will read environment variables assigned for proxy and no_proxy. Which issue(s) this PR fixes: Fixes kubernetes-client#2321 Special notes for your reviewer: Unit test is added kubernetes\base\stream\ws_client_test.py Does this PR introduce a user-facing change? None Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: None
Update configuration.py What type of PR is this? /kind bug What this PR does / why we need it: This PRs will read environment variables assigned for proxy and no_proxy. Which issue(s) this PR fixes: Fixes kubernetes-client#2321 Special notes for your reviewer: Unit test is added kubernetes\base\stream\ws_client_test.py Does this PR introduce a user-facing change? None Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: None
please open a Pull Request |
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: