-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Why does deleteNamespacedServiceAccount return V1ServiceAccount while other resources delete methods return V1Status? #1400
Comments
I tried to convert it myself by:
It returns successfully but the details and status attributes are null. |
I found that this commit changed the return type of |
All of this is generated from the Kubernetes OpenAPI specification here: https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json The truth is that delete can either return a V1Status or the object itself (see #86 for more discussion) but this isn't well represented in the OpenAPI specification. If we wanted to correct this, we need to update the OpenAPI specification. (and also update the client generator to handle multi-return), that's not a bad thing to do, but it's also not a super high priority. Hope that helps. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have a list of resources which I work generic with (using reflection). I have a list of future tasks to delete them all. All resources delete methods return
V1Status
whiledeleteNamespacedServiceAccount
returnsV1ServiceAccount
why is that?The text was updated successfully, but these errors were encountered: