Fix custom objects API to preserve backward compatibility
Reference: - [#866](https://github.com/kubernetes-client/python/issues/866) - [#959](https://github.com/kubernetes-client/python/pull/959) Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
This commit is contained in:
parent
3b247f5d0f
commit
61f1fbe49a
@ -2425,7 +2425,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
@ -2594,7 +2594,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
@ -2763,7 +2763,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
@ -2941,7 +2941,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
@ -3119,7 +3119,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
@ -3297,7 +3297,7 @@ class CustomObjectsApi(object):
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
||||
['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml']) # noqa: E501
|
||||
['application/merge-patch+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['BearerToken'] # noqa: E501
|
||||
|
||||
Loading…
Reference in New Issue
Block a user