Merge pull request #887 from roycaihw/patch-10.0-cr-content-type

Fix custom object patch API content type in release-10.0 branch
This commit is contained in:
Kubernetes Prow Robot 2019-07-19 10:01:12 -07:00 committed by GitHub
commit fd9edfe1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
# v10.0.1
**Bug Fix:**
- Fix content type regression in custom object patch API [kubernetes-client/python#866](https://github.com/kubernetes-client/python/issues/866)
# v10.0.0
**Bug Fix:**
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)

View File

@ -1657,7 +1657,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
@ -1781,7 +1781,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
@ -1905,7 +1905,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
@ -2036,7 +2036,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
@ -2167,7 +2167,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
@ -2298,7 +2298,7 @@ class CustomObjectsApi(object):
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']