-
Notifications
You must be signed in to change notification settings - Fork 295
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
DeleteNamespacedService throws JsonException #824
Comments
may i know your server and client version likely caused by swagger changed |
Client: 1.22.5 |
then it is a bug, I am looking into it |
this is due to swagger change and be behavior is expected 1.21 and 1.22 search https://raw.githubusercontent.com/kubernetes/kubernetes/v1.21.9/api/openapi-spec/swagger.json anyway, the backward compatibility seems a big headache. will test build multiple api def in future version. |
I saw that. Which seems odd to me, to have a delete method return an object of the type being deleted. Most of the other delete methods return a status, which seems more natural to me. Since the delete still succeeds, I'll just catch the error and move on. Hopefully this becomes more consistent in the future. |
close as it is by design |
When calling DeleteNamespacedService (or DeleteNamespacedServiceAsync), result is:
System.Text.Json.JsonException: The JSON value could not be converted to k8s.Models.V1ServiceStatus. Path: $.status | LineNumber: 0 | BytePositionInLine: 67.
Although, the service is successfully deleted from the cluster.
Here's the code I'm using:
Full exception stack:
The text was updated successfully, but these errors were encountered: