-
Notifications
You must be signed in to change notification settings - Fork 988
Description
Today, if you drain a node, kubectl will prompt you for confirmation in the form of --ignore-daemonsets and --delete-local-data if applicable. This is fine and a nice guard for doing something dangerous.
Along the same lines, I would like some sort of --force or --cascade flag for deleting namespaces, in case the namespace contains objects. This would imply kubectl get -n <namespace> all before the actual delete is executed.
/kind feature
/sig cli
What happened:
My namespace and all objects within it was deleted without confirmation or questioning.
What you expected to happen:
A warning or bail out asking for a confirmation or a "I-know-what-I'm-doing-flag` before proceeding.
How to reproduce it (as minimally and precisely as possible):
kubectl delete ns <any-namespace>