Skip to content

Commit

Permalink
Merge pull request kubernetes-client#779 from chowmean/proxy-header-o…
Browse files Browse the repository at this point in the history
…ption

Adding proxy headers options for configurations.
  • Loading branch information
k8s-ci-robot authored Mar 15, 2019
2 parents fcda6fe + 8c9494e commit 374233d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubernetes/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''

Expand Down
1 change: 1 addition & 0 deletions kubernetes/client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 374233d

Please sign in to comment.