-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Delete with empty name results in deletecollection #2291
Comments
The delete method compose the request to something like This was also reported in #2209 I think at this point it will be hard to change this behavior, because we don't know how many users may already depend on this behavior. |
What would the client code from python look like to make this call? Is there already a separate deletecollection call? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
What happened (please include outputs or screenshots):
According to kubernetes/kubernetes#127746, if delete is called with an empty name, the client will not fail but instead call delete on the collection resource and delete the entire collection of resources.
What you expected to happen:
Delete either performs the delete of a single resource, or fails.
How to reproduce it (as minimally and precisely as possible):
Call delete, but provide an empty name.
cc @zhifei92
The text was updated successfully, but these errors were encountered: