You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a KubernetesPatch construct to update the Gloo settings custom resource, I receive the following error: Failed to create resource. Error: b'Error from server (UnsupportedMediaType): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json\n'
It appears that the default patch type of 'strategic' is not appropriate for patching this resource, and there's no mechanism available to specify a --type=merge or --type=json for the kubectl provider.
Failed to create resource. Error: b'Error from server (UnsupportedMediaType): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json\n'
Environment
CLI Version : 1.27.0
Framework Version: 1.27.0
OS : Mac OS 10.14.6
Language : Typescript
Other
A PatchType field in the kubectl provider for patch resources would resolve this issue for me. I intend to submit a PR for this.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered:
feat(eks): KubernetesPatch (#6753)
Exports KubernetesPatch from aws-eks module.
Adds ability to specify a patch "type" for `kubectl patch` to use (fixes#6723)
iliapolo
changed the title
UnsupportedMediaType Error when creating KubernetesPatch for custom resource
[aws-eks] UnsupportedMediaType Error when creating KubernetesPatch for custom resource
Aug 16, 2020
When creating a KubernetesPatch construct to update the Gloo settings custom resource, I receive the following error:
Failed to create resource. Error: b'Error from server (UnsupportedMediaType): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json\n'
It appears that the default patch type of 'strategic' is not appropriate for patching this resource, and there's no mechanism available to specify a --type=merge or --type=json for the kubectl provider.
It's my understanding that custom resources in general do not support the default 'strategic' merge type.
https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/
Reproduction Steps
Error Log
Failed to create resource. Error: b'Error from server (UnsupportedMediaType): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json\n'
Environment
Other
A
PatchType
field in the kubectl provider for patch resources would resolve this issue for me. I intend to submit a PR for this.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: