Skip to content

Commit 334a62a

Browse files
authored
Merge pull request #1285 from palnabarun/release-12.0
Release 12.0.1
2 parents 38a0ab4 + b9b2365 commit 334a62a

File tree

10 files changed

+59
-10
lines changed

10 files changed

+59
-10
lines changed

CHANGELOG.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# v12.0.1
2+
3+
Kubernetes API Version: 1.16.15
4+
5+
**Breaking Change:**
6+
7+
- `kubernetes.config.Configuration()` will now return the default "initial" configuration, `kubernetes.config.Configuration.get_default_copy()` will return the default configuration if there is a default set via `Configuration.set_default(c)`, otherwise, it will also return the default "initial" configuration. [OpenAPITools/openapi-generator#4485](https://github.com/OpenAPITools/openapi-generator/pull/4485), [OpenAPITools/openapi-generator#5315](https://github.com/OpenAPITools/openapi-generator/pull/5315). **Note: ** This change also affects v12.0.0a1, v12.0.0b1 and v12.0.0.
8+
9+
**Bug Fix:**
10+
- Prevent 503s from killing the client during discovery [kubernetes-client/python-base#187](https://github.com/kubernetes-client/python-base/pull/187)
11+
12+
113
# v12.0.0
214

315
Kubernetes API Version: 1.16.15
@@ -7,8 +19,6 @@ Kubernetes API Version: 1.16.15
719
- Support loading configuration from file-like objects [kubernetes-client/python-base#208](https://github.com/kubernetes-client/python-base/pull/208)
820
- Returns the created k8s objects in `create_from_{dict,yaml}` [kubernetes-client/python#1262](https://github.com/kubernetes-client/python/pull/1262)
921

10-
**Bug Fix:**
11-
- Prevent 503s from killing the client during discovery [kubernetes-client/python-base#187](https://github.com/kubernetes-client/python-base/pull/187)
1222

1323
# v12.0.0b1
1424

kubernetes/README.md

+1-1
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.16
7-
- Package version: 12.0.0
7+
- Package version: 12.0.1
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/__init__.py

+1-1
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__ = "12.0.0"
17+
__version__ = "12.0.1"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/base

kubernetes/client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "12.0.0"
17+
__version__ = "12.0.1"
1818

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

kubernetes/client/api_client.py

+1-1
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/12.0.0/python'
81+
self.user_agent = 'OpenAPI-Generator/12.0.1/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

kubernetes/client/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def to_debug_report(self):
347347
"OS: {env}\n"\
348348
"Python Version: {pyversion}\n"\
349349
"Version of the API: release-1.16\n"\
350-
"SDK Package Version: 12.0.0".\
350+
"SDK Package Version: 12.0.1".\
351351
format(env=sys.platform, pyversion=sys.version)
352352

353353
def get_host_settings(self):

kubernetes/test/test_configuration.py

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# coding: utf-8
2+
3+
import unittest
4+
5+
from kubernetes.client import Configuration
6+
7+
class TestConfiguration(unittest.TestCase):
8+
9+
def setUp(self):
10+
pass
11+
12+
def tearDown(self):
13+
# reset Configuration
14+
Configuration.set_default(None)
15+
16+
def testConfiguration(self):
17+
# check that different instances use different dictionaries
18+
c1 = Configuration()
19+
c2 = Configuration()
20+
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
21+
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
22+
23+
def testDefaultConfiguration(self):
24+
# prepare default configuration
25+
c1 = Configuration(host="example.com")
26+
c1.debug = True
27+
Configuration.set_default(c1)
28+
29+
# get default configuration
30+
c2 = Configuration.get_default_copy()
31+
self.assertEqual(c2.host, "example.com")
32+
self.assertTrue(c2.debug)
33+
34+
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
35+
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
36+
37+
38+
if __name__ == '__main__':
39+
unittest.main()

scripts/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
KUBERNETES_BRANCH = "release-1.16"
1919

2020
# client version for packaging and releasing.
21-
CLIENT_VERSION = "12.0.0"
21+
CLIENT_VERSION = "12.0.1"
2222

2323
# Name of the release package
2424
PACKAGE_NAME = "kubernetes"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

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

0 commit comments

Comments
 (0)