Skip to content

Commit

Permalink
Merge pull request #887 from roycaihw/patch-10.0-cr-content-type
Browse files Browse the repository at this point in the history
Fix custom object patch API content type in release-10.0 branch
  • Loading branch information
k8s-ci-robot authored Jul 19, 2019
2 parents b46cc20 + bc9f9f5 commit fd9edfe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v10.0.1
**Bug Fix:**
- Fix content type regression in custom object patch API [kubernetes-client/python#866](https://github.com/kubernetes-client/python/issues/866)

# v10.0.0
**Bug Fix:**
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)
Expand Down
12 changes: 6 additions & 6 deletions kubernetes/client/apis/custom_objects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down Expand Up @@ -1781,7 +1781,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down Expand Up @@ -1905,7 +1905,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down Expand Up @@ -2036,7 +2036,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down Expand Up @@ -2167,7 +2167,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down Expand Up @@ -2298,7 +2298,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n

# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
select_header_content_type(['application/merge-patch+json', 'application/json-patch+json'])

# Authentication setting
auth_settings = ['BearerToken']
Expand Down

0 comments on commit fd9edfe

Please sign in to comment.