Delete namespace does not return proper v1.Status object #69970
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
/kind bug
What happened:
I tried to delete a namespace via https://github.com/kubernetes-client/java and was hit by a gnarly error when the lib tried to deserialize the returned body
So I dug into the API repsonses and found out that indeed something appears to be wrong in the swagger spec + official API documentation. According to DELETE namespace docs the response should be a Status v1 meta object. However, the returned response looks actually like this:
The status field should be a string of either "Success" or "Failure" according to docs + swagger spec, but it's actually an object
status":{"phase":"Terminating"}
.What you expected to happen:
The
status
field should be a string.How to reproduce it (as minimally and precisely as possible):
Create a namespace, delete it, observe status field content in output
Anything else we need to know?:
Environment:
kubectl version
): server 1.11.3, client 1.10.1The text was updated successfully, but these errors were encountered: