From 8c9494ecf9efa65ae3f44df8930eb47bb3301233 Mon Sep 17 00:00:00 2001 From: chowmean Date: Sat, 16 Mar 2019 00:20:12 +0530 Subject: [PATCH] adding proxy headers settings for proxy_manager --- kubernetes/client/configuration.py | 2 ++ kubernetes/client/rest.py | 1 + 2 files changed, 3 insertions(+) diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index 5d50585450..647f6b8a51 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -101,6 +101,8 @@ def __init__(self): # Proxy URL self.proxy = None + # Proxy Headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py index 3a2a2add6c..1a755ee102 100644 --- a/kubernetes/client/rest.py +++ b/kubernetes/client/rest.py @@ -96,6 +96,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: