Skip to content

Commit fd9edfe

Browse files
authored
Merge pull request #887 from roycaihw/patch-10.0-cr-content-type
Fix custom object patch API content type in release-10.0 branch
2 parents b46cc20 + bc9f9f5 commit fd9edfe

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v10.0.1
2+
**Bug Fix:**
3+
- Fix content type regression in custom object patch API [kubernetes-client/python#866](https://github.com/kubernetes-client/python/issues/866)
4+
15
# v10.0.0
26
**Bug Fix:**
37
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)

kubernetes/client/apis/custom_objects_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
16571657

16581658
# HTTP header `Content-Type`
16591659
header_params['Content-Type'] = self.api_client.\
1660-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1660+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
16611661

16621662
# Authentication setting
16631663
auth_settings = ['BearerToken']
@@ -1781,7 +1781,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
17811781

17821782
# HTTP header `Content-Type`
17831783
header_params['Content-Type'] = self.api_client.\
1784-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1784+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
17851785

17861786
# Authentication setting
17871787
auth_settings = ['BearerToken']
@@ -1905,7 +1905,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
19051905

19061906
# HTTP header `Content-Type`
19071907
header_params['Content-Type'] = self.api_client.\
1908-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1908+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
19091909

19101910
# Authentication setting
19111911
auth_settings = ['BearerToken']
@@ -2036,7 +2036,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
20362036

20372037
# HTTP header `Content-Type`
20382038
header_params['Content-Type'] = self.api_client.\
2039-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2039+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
20402040

20412041
# Authentication setting
20422042
auth_settings = ['BearerToken']
@@ -2167,7 +2167,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
21672167

21682168
# HTTP header `Content-Type`
21692169
header_params['Content-Type'] = self.api_client.\
2170-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2170+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
21712171

21722172
# Authentication setting
21732173
auth_settings = ['BearerToken']
@@ -2298,7 +2298,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
22982298

22992299
# HTTP header `Content-Type`
23002300
header_params['Content-Type'] = self.api_client.\
2301-
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
2301+
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])
23022302

23032303
# Authentication setting
23042304
auth_settings = ['BearerToken']

0 commit comments

Comments
 (0)