Hi,
Can someone help on this problem?
I was trying to patch update deployment from my ReactJS UI using Restful API, and blocked by this issue:
E0803 01:43:35.580224 1 errors.go:63] apiserver received an error that is not an unversioned.Status: Invalid JSON document
The Json request is < {"spec":{"template":{"spec":{"containers":[{"name":"testxxx","image":"apache2"}]}}}} >, the API I was calling is < http://<kubernetesAPIServer>/apis/extensions/v1beta1/namespaces/default/deployments/testxxxx >.
However I can successfully update the deployment with curl
# curl -XPATCH -H'Content-Type: application/strategic-merge-patch+json' http://<kubernetesAPIServer>/apis/extensions/v1beta1/namespaces/default/deployments/testxxxx -d @patch.json
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "testxxxx",
"namespace": "default",
...
}