Skip to content

Commit 068a541

Browse files
committed
generated client change
1 parent 00d1e5b commit 068a541

File tree

8 files changed

+9
-39
lines changed

8 files changed

+9
-39
lines changed

kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: release-1.19
7-
- Package version: 19.15.0b1
7+
- Package version: 19.15.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__project__ = 'kubernetes'
1616
# The version is auto-updated. Please do not edit.
17-
__version__ = "19.15.0b1"
17+
__version__ = "19.15.0"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "19.15.0b1"
17+
__version__ = "19.15.0"
1818

1919
# import apis into sdk package
2020
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/19.15.0b1/python'
81+
self.user_agent = 'OpenAPI-Generator/19.15.0/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

kubernetes/client/configuration.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ def __init__(self, host="http://localhost",
156156
self.proxy = None
157157
"""Proxy URL
158158
"""
159-
self.no_proxy = None
160-
"""bypass proxy for host in the no_proxy list.
161-
"""
162159
self.proxy_headers = None
163160
"""Proxy headers
164161
"""
@@ -350,7 +347,7 @@ def to_debug_report(self):
350347
"OS: {env}\n"\
351348
"Python Version: {pyversion}\n"\
352349
"Version of the API: release-1.19\n"\
353-
"SDK Package Version: 19.15.0b1".\
350+
"SDK Package Version: 19.15.0".\
354351
format(env=sys.platform, pyversion=sys.version)
355352

356353
def get_host_settings(self):

kubernetes/client/rest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import urllib3
2626

2727
from kubernetes.client.exceptions import ApiException, ApiValueError
28-
from requests.utils import should_bypass_proxies
2928

3029

3130
logger = logging.getLogger(__name__)
@@ -84,7 +83,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None):
8483
maxsize = 4
8584

8685
# https pool manager
87-
if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''):
86+
if configuration.proxy:
8887
self.pool_manager = urllib3.ProxyManager(
8988
num_pools=pools_size,
9089
maxsize=maxsize,

kubernetes/test/test_api_client.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import unittest
77

88
import kubernetes
9-
from kubernetes.client.configuration import Configuration
10-
import urllib3
9+
1110

1211
class TestApiClient(unittest.TestCase):
1312

@@ -24,28 +23,3 @@ def test_atexit_closes_threadpool(self):
2423
self.assertIsNotNone(client._pool)
2524
atexit._run_exitfuncs()
2625
self.assertIsNone(client._pool)
27-
28-
def test_rest_proxycare(self):
29-
30-
pool = { 'proxy': urllib3.ProxyManager, 'direct': urllib3.PoolManager }
31-
32-
for dst, proxy, no_proxy, expected_pool in [
33-
( 'http://kube.local/', None, None, pool['direct']),
34-
( 'http://kube.local/', 'http://proxy.local:8080/', None, pool['proxy']),
35-
( 'http://127.0.0.1:8080/', 'http://proxy.local:8080/', 'localhost,127.0.0.0/8,.local', pool['direct']),
36-
( 'http://kube.local/', 'http://proxy.local:8080/', 'localhost,127.0.0.0/8,.local', pool['direct']),
37-
( 'http://kube.others.com:1234/','http://proxy.local:8080/', 'localhost,127.0.0.0/8,.local', pool['proxy']),
38-
( 'http://kube.others.com:1234/','http://proxy.local:8080/', '*', pool['direct']),
39-
]:
40-
# setup input
41-
config = Configuration()
42-
setattr(config, 'host', dst)
43-
if proxy is not None:
44-
setattr(config, 'proxy', proxy)
45-
if no_proxy is not None:
46-
setattr(config, 'no_proxy', no_proxy)
47-
# setup done
48-
49-
# test
50-
client = kubernetes.client.ApiClient(configuration=config)
51-
self.assertEqual( expected_pool, type(client.rest_client.pool_manager) )

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
# Do not edit these constants. They will be updated automatically
1818
# by scripts/update-client.sh.
19-
CLIENT_VERSION = "19.15.0b1"
19+
CLIENT_VERSION = "19.15.0"
2020
PACKAGE_NAME = "kubernetes"
21-
DEVELOPMENT_STATUS = "4 - Beta"
21+
DEVELOPMENT_STATUS = "5 - Production/Stable"
2222

2323
# To install the library, run the following
2424
#

0 commit comments

Comments
 (0)