Skip to content

Commit 61f1fbe

Browse files
palnabarunroycaihw
authored andcommitted
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 3b247f5 commit 61f1fbe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kubernetes/client/api/custom_objects_api.py

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

24262426
# HTTP header `Content-Type`
24272427
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2428-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2428+
['application/merge-patch+json']) # noqa: E501
24292429

24302430
# Authentication setting
24312431
auth_settings = ['BearerToken'] # noqa: E501
@@ -2594,7 +2594,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura
25942594

25952595
# HTTP header `Content-Type`
25962596
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2597-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2597+
['application/merge-patch+json']) # noqa: E501
25982598

25992599
# Authentication setting
26002600
auth_settings = ['BearerToken'] # noqa: E501
@@ -2763,7 +2763,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur
27632763

27642764
# HTTP header `Content-Type`
27652765
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2766-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2766+
['application/merge-patch+json']) # noqa: E501
27672767

27682768
# Authentication setting
27692769
auth_settings = ['BearerToken'] # noqa: E501
@@ -2941,7 +2941,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac
29412941

29422942
# HTTP header `Content-Type`
29432943
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2944-
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
2944+
['application/merge-patch+json']) # noqa: E501
29452945

29462946
# Authentication setting
29472947
auth_settings = ['BearerToken'] # noqa: E501
@@ -3119,7 +3119,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na
31193119

31203120
# HTTP header `Content-Type`
31213121
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3122-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
3122+
['application/merge-patch+json']) # noqa: E501
31233123

31243124
# Authentication setting
31253125
auth_settings = ['BearerToken'] # noqa: E501
@@ -3297,7 +3297,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n
32973297

32983298
# HTTP header `Content-Type`
32993299
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3300-
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
3300+
['application/merge-patch+json']) # noqa: E501
33013301

33023302
# Authentication setting
33033303
auth_settings = ['BearerToken'] # noqa: E501

0 commit comments

Comments
 (0)