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
5a67dd973a
commit
ca17df68f4
@ -2405,7 +2405,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
|
||||
@ -2574,7 +2574,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
|
||||
@ -2743,7 +2743,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
|
||||
@ -2921,7 +2921,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
|
||||
@ -3099,7 +3099,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
|
||||
@ -3277,7 +3277,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