-
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
kubernetes.client.api.core_v1_api.delete_node_with_http_info deletes all nodes when name
is an empty string.
#2209
Comments
As a fun aside, the log message that says you've deleted all your nodes only shows up if your apiserver's log verbosity is set to at least 4. If you have |
/assign @herlo |
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 |
/remove-lifecycle stale |
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 |
/remove-lifecycle stale |
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 |
What happened (please include outputs or screenshots):
The python client library allows deletion of all nodes in a cluster when passing in an empty string. THIS IS BAD!!
As part of code we use, we call:
When we do this, we discovered an issue where we accidentally passed in a
node_name=""
, which leads to this message:Which turns out to delete all nodes from the API server on the cluster. OOPSIE!
Corresponding queries to the API show that our nodes indeed disappear.
What you expected to happen:
The
delete_node
/delete_node_with_http_info
method should fail if the name is blank(name="")
.How to reproduce it (as minimally and precisely as possible):
Open a python shell and import the kubernetes python code. Initialize it and call
delete_node("")
which should raise an ApiValueErrorAnything else we need to know?:
Environment:
kubectl version
): 1.27python --version
) 3.11.4pip list | grep kubernetes
) 27.2.0The text was updated successfully, but these errors were encountered: