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: