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
http 415 when patching the status of an un-typed resource #3379
Comments
To avoid a deprecated method call the RawCustomResourceOperationsImpl updateStatus method is now calling patchStatus - but that defaults to a json merge patch, which is not yet supported by the mock logic. The RawCustomResourceOperationsImpl should probably go back to calling the deprecated updateStatus method. |
@shawkins thx for digging into it, is there a workaround for this ? |
Not through RawCustomResourceOperationsImpl and the mock server, no. The genericKubernetesResource will work and it also exposes the newer patch methods. |
@shawkins that's great so yes, using |
I have a question in #3385 you commented that it would be better to go back to the deprecated method but my PR is trying to support json merge patch in the mock, is not it the good solution ? |
As mentioned on the pr it's more like a separate enhancement, not a specific fix for this issue. patchStatus is sementically different than updateStatus, so the direct fix is change the raw calls back to updateStatus. |
Oki thanks so I will create an issue about supporting json merge patch in the mock and do a corresponding issue. And it will also solve this one |
Fixed by #3395 |
in my integration tests (against the k8s mock web server), I have to update the status of an unstructured object, so I'm doing something like:
this was working on fabric8 client 5.4.x (with a different dsl) but now, I'm getting HTTP 415
And a message that says:
The text was updated successfully, but these errors were encountered: