Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc9f9f5

Browse filesBrowse files
committed
hotfix: switch the order of content-type, so JSON merge patch is
used by default
1 parent b46cc20 commit bc9f9f5
Copy full SHA for bc9f9f5

File tree

2 files changed

+10
-6
lines changed
Filter options

2 files changed

+10
-6
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines 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

Copy file name to clipboardExpand all lines: kubernetes/client/apis/custom_objects_api.py
+6-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.