Skip to content

Commit c7f60ed

Browse files
authored
Merge pull request #1584 from roycaihw/automated-release-of-19.15.0-upstream-release-19.0-1635134453
Generate v19.15.0 client
2 parents b6a5d53 + a66bb80 commit c7f60ed

File tree

17 files changed

+106
-46
lines changed

17 files changed

+106
-46
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.6, 3.7, 3.8, 3.9]
11+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1212

1313
steps:
1414
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v19.15.0
2+
3+
Kubernetes API Version: v1.19.15
4+
5+
### Feature
6+
- The new parameter 'no_proxy' has been added to configuration for the REST and websocket client. ([kubernetes-client/python#1579](https://github.com/kubernetes-client/python/pull/1579), [@itaru2622](https://github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))//github.com/itaru2622))
7+
18
# v19.15.0b1
29

310
Kubernetes API Version: v1.19.15
@@ -12,6 +19,7 @@ Kubernetes API Version: v1.19.15
1219
- Type checking in `Client.serialize_body()` was made more restrictive and robust. ([kubernetes-client/python-base#241](https://github.com/kubernetes-client/python-base/pull/241), [@piglei](https://github.com/piglei))
1320

1421
### Feature
22+
- Support Proxy Authentication in websocket client(stream/ws_client) like REST client. ([kubernetes-client/python-base#256](https://github.com/kubernetes-client/python-base/pull/256), [@itaru2622](https://github.com/itaru2622))
1523
- Support for the dryRun parameter has been added to the dynamic client. ([kubernetes-client/python-base#247](https://github.com/kubernetes-client/python-base/pull/247), [@gravesm](https://github.com/gravesm))
1624

1725
### API Change

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ 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+
"""
159162
self.proxy_headers = None
160163
"""Proxy headers
161164
"""
@@ -347,7 +350,7 @@ def to_debug_report(self):
347350
"OS: {env}\n"\
348351
"Python Version: {pyversion}\n"\
349352
"Version of the API: release-1.19\n"\
350-
"SDK Package Version: 19.15.0b1".\
353+
"SDK Package Version: 19.15.0".\
351354
format(env=sys.platform, pyversion=sys.version)
352355

353356
def get_host_settings(self):

kubernetes/client/rest.py

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

2727
from kubernetes.client.exceptions import ApiException, ApiValueError
28+
from requests.utils import should_bypass_proxies
2829

2930

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

8586
# https pool manager
86-
if configuration.proxy:
87+
if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''):
8788
self.pool_manager = urllib3.ProxyManager(
8889
num_pools=pools_size,
8990
maxsize=maxsize,

kubernetes/e2e_test/test_batch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class TestClientBatch(unittest.TestCase):
2626
def setUpClass(cls):
2727
cls.config = base.get_e2e_configuration()
2828

29-
3029
def test_job_apis(self):
3130
client = api_client.ApiClient(configuration=self.config)
3231
api = batch_v1_api.BatchV1Api(client)
@@ -56,4 +55,4 @@ def test_job_apis(self):
5655
self.assertEqual(name, resp.metadata.name)
5756

5857
resp = api.delete_namespaced_job(
59-
name=name, body={}, namespace='default')
58+
name=name, namespace='default', propagation_policy='Background')

0 commit comments

Comments
 (0)