Skip to content

Commit f84640c

Browse files
committed
Fix custom objects API to preserve backward compatibility
Reference: - [kubernetes-client#866](kubernetes-client#866) - [kubernetes-client#959](kubernetes-client#959) Signed-off-by: Nabarun Pal <[email protected]>
1 parent 2546662 commit f84640c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kubernetes/client/api/custom_objects_api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam
24052405

24062406
# HTTP header `Content-Type`
24072407
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2408-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2408+
['application/merge-patch+json']) # noqa: E501
24092409

24102410
# Authentication setting
24112411
auth_settings = ['BearerToken'] # noqa: E501
@@ -2574,7 +2574,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
25742574

25752575
# HTTP header `Content-Type`
25762576
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2577-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2577+
['application/merge-patch+json']) # noqa: E501
25782578

25792579
# Authentication setting
25802580
auth_settings = ['BearerToken'] # noqa: E501
@@ -2743,7 +2743,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
27432743

27442744
# HTTP header `Content-Type`
27452745
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2746-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2746+
['application/merge-patch+json']) # noqa: E501
27472747

27482748
# Authentication setting
27492749
auth_settings = ['BearerToken'] # noqa: E501
@@ -2921,7 +2921,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
29212921

29222922
# HTTP header `Content-Type`
29232923
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2924-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2924+
['application/merge-patch+json']) # noqa: E501
29252925

29262926
# Authentication setting
29272927
auth_settings = ['BearerToken'] # noqa: E501
@@ -3099,7 +3099,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
30993099

31003100
# HTTP header `Content-Type`
31013101
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3102-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
3102+
['application/merge-patch+json']) # noqa: E501
31033103

31043104
# Authentication setting
31053105
auth_settings = ['BearerToken'] # noqa: E501
@@ -3277,7 +3277,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
32773277

32783278
# HTTP header `Content-Type`
32793279
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3280-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
3280+
['application/merge-patch+json']) # noqa: E501
32813281

32823282
# Authentication setting
32833283
auth_settings = ['BearerToken'] # noqa: E501

0 commit comments

Comments
 (0)