commit
334a62ab7d
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,3 +1,15 @@
|
||||
# v12.0.1
|
||||
|
||||
Kubernetes API Version: 1.16.15
|
||||
|
||||
**Breaking Change:**
|
||||
|
||||
- `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.
|
||||
|
||||
**Bug Fix:**
|
||||
- Prevent 503s from killing the client during discovery [kubernetes-client/python-base#187](https://github.com/kubernetes-client/python-base/pull/187)
|
||||
|
||||
|
||||
# v12.0.0
|
||||
|
||||
Kubernetes API Version: 1.16.15
|
||||
@ -7,8 +19,6 @@ Kubernetes API Version: 1.16.15
|
||||
- Support loading configuration from file-like objects [kubernetes-client/python-base#208](https://github.com/kubernetes-client/python-base/pull/208)
|
||||
- Returns the created k8s objects in `create_from_{dict,yaml}` [kubernetes-client/python#1262](https://github.com/kubernetes-client/python/pull/1262)
|
||||
|
||||
**Bug Fix:**
|
||||
- Prevent 503s from killing the client during discovery [kubernetes-client/python-base#187](https://github.com/kubernetes-client/python-base/pull/187)
|
||||
|
||||
# v12.0.0b1
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: release-1.16
|
||||
- Package version: 12.0.0
|
||||
- Package version: 12.0.1
|
||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||
|
||||
## Requirements.
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
__project__ = 'kubernetes'
|
||||
# The version is auto-updated. Please do not edit.
|
||||
__version__ = "12.0.0"
|
||||
__version__ = "12.0.1"
|
||||
|
||||
import kubernetes.client
|
||||
import kubernetes.config
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit fd322f70aa6c33782ab466afd4eaae271a27cbcb
|
||||
Subproject commit 2da2b981ca806b25487ad92d01a2164815c18517
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
__version__ = "12.0.0"
|
||||
__version__ = "12.0.1"
|
||||
|
||||
# import apis into sdk package
|
||||
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
|
||||
|
||||
@ -78,7 +78,7 @@ class ApiClient(object):
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'OpenAPI-Generator/12.0.0/python'
|
||||
self.user_agent = 'OpenAPI-Generator/12.0.1/python'
|
||||
self.client_side_validation = configuration.client_side_validation
|
||||
|
||||
def __enter__(self):
|
||||
|
||||
@ -347,7 +347,7 @@ class Configuration(object):
|
||||
"OS: {env}\n"\
|
||||
"Python Version: {pyversion}\n"\
|
||||
"Version of the API: release-1.16\n"\
|
||||
"SDK Package Version: 12.0.0".\
|
||||
"SDK Package Version: 12.0.1".\
|
||||
format(env=sys.platform, pyversion=sys.version)
|
||||
|
||||
def get_host_settings(self):
|
||||
|
||||
39
kubernetes/test/test_configuration.py
Normal file
39
kubernetes/test/test_configuration.py
Normal file
@ -0,0 +1,39 @@
|
||||
# coding: utf-8
|
||||
|
||||
import unittest
|
||||
|
||||
from kubernetes.client import Configuration
|
||||
|
||||
class TestConfiguration(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
# reset Configuration
|
||||
Configuration.set_default(None)
|
||||
|
||||
def testConfiguration(self):
|
||||
# check that different instances use different dictionaries
|
||||
c1 = Configuration()
|
||||
c2 = Configuration()
|
||||
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
|
||||
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
|
||||
|
||||
def testDefaultConfiguration(self):
|
||||
# prepare default configuration
|
||||
c1 = Configuration(host="example.com")
|
||||
c1.debug = True
|
||||
Configuration.set_default(c1)
|
||||
|
||||
# get default configuration
|
||||
c2 = Configuration.get_default_copy()
|
||||
self.assertEqual(c2.host, "example.com")
|
||||
self.assertTrue(c2.debug)
|
||||
|
||||
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
|
||||
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@ -18,7 +18,7 @@ import sys
|
||||
KUBERNETES_BRANCH = "release-1.16"
|
||||
|
||||
# client version for packaging and releasing.
|
||||
CLIENT_VERSION = "12.0.0"
|
||||
CLIENT_VERSION = "12.0.1"
|
||||
|
||||
# Name of the release package
|
||||
PACKAGE_NAME = "kubernetes"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user