-
Notifications
You must be signed in to change notification settings - Fork 550
UnsupportedMediaType when patching ingress #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is almost certainly because the See #440 which discussed the same issue. |
Closing this issue since I believe the question is answered. If you still have problems, please place them in #440 |
It would be good to include full patch example in const k8sNetworkingApi = kc.makeApiClient(k8s.NetworkingV1beta1Api);
const patchedIngress = {
metadata: {
annotations: {
'nginx.ingress.kubernetes.io/cors-allow-origin': '*'
}
}
}
k8sNetworkingApi.patchNamespacedIngress(ingressName, namespace, patchedIngress, undefined, undefined, undefined, undefined,
{ headers: { 'content-type': 'application/merge-patch+json' } }) |
Uh oh!
There was an error while loading. Please reload this page.
Hi
when patching a ingress we get the following error message
Kubernetes Version: 1.14.10-gke.27
The text was updated successfully, but these errors were encountered: