From 7e0a76960a03e1d76d5d5e3437d1bd3f7b80554a Mon Sep 17 00:00:00 2001 From: Daesik Choi Date: Tue, 30 Sep 2025 14:10:18 -0400 Subject: [PATCH 1/2] Fix no_proxy reset in configuration.py This commit removes the redundant assignment to `None`, ensuring that the `no_proxy` environment variable is preserved and proxy bypass settings are applied as expected. --- kubernetes/client/configuration.py | 1 - 1 file changed, 1 deletion(-) diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index f2460998bc..bc04355bdb 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -170,7 +170,6 @@ def __init__(self, host="http://localhost", if os.getenv("no_proxy"): self.no_proxy = os.getenv("no_proxy") """Proxy URL """ - self.no_proxy = None """bypass proxy for host in the no_proxy list. """ self.proxy_headers = None From 59032dac7febc167a245c9aabc4c265071997543 Mon Sep 17 00:00:00 2001 From: dae Date: Thu, 9 Oct 2025 17:39:24 -0400 Subject: [PATCH 2/2] update configuration.py - rerunning insert_proxy_config.sh on v33.1.0 --- kubernetes/client/configuration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index bc04355bdb..1f0475102f 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -159,17 +159,17 @@ def __init__(self, host="http://localhost", """ self.proxy = None + """Proxy URL + """ + self.no_proxy = None # Load proxy from environment variables (if set) if os.getenv("HTTPS_PROXY"): self.proxy = os.getenv("HTTPS_PROXY") if os.getenv("https_proxy"): self.proxy = os.getenv("https_proxy") if os.getenv("HTTP_PROXY"): self.proxy = os.getenv("HTTP_PROXY") if os.getenv("http_proxy"): self.proxy = os.getenv("http_proxy") - self.no_proxy = None # Load no_proxy from environment variables (if set) if os.getenv("NO_PROXY"): self.no_proxy = os.getenv("NO_PROXY") if os.getenv("no_proxy"): self.no_proxy = os.getenv("no_proxy") - """Proxy URL - """ """bypass proxy for host in the no_proxy list. """ self.proxy_headers = None