Skip to content
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

Adding option to send number of retries to override default value of 3. #780

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kubernetes/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def __init__(self):
# Safe chars for path_param
self.safe_chars_for_path_param = ''

self.retries = None
chowmean marked this conversation as resolved.
Show resolved Hide resolved

@property
def logger_file(self):
"""
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None):
if configuration.assert_hostname is not None:
addition_pool_args['assert_hostname'] = configuration.assert_hostname

if configuration.retries is not None:
addition_pool_args['retries'] = configuration.retries

if maxsize is None:
if configuration.connection_pool_maxsize is not None:
maxsize = configuration.connection_pool_maxsize
Expand Down