kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 47519962bf Merge pull request #35484 from smarterclayton/delete_warning
Automatic merge from submit-queue

Add --force to kubectl delete and explain force deletion

--force is required for --grace-period=0. --now is == --grace-period=1.
Improve command help to explain what graceful deletion is and warn about
force deletion.

Part of #34160 & #29033

```release-note
In order to bypass graceful deletion of pods (to immediately remove the pod from the API) the user must now provide the `--force` flag in addition to `--grace-period=0`.  This prevents users from accidentally force deleting pods without being aware of the consequences of force deletion.  Force deleting pods for resources like StatefulSets can result in multiple pods with the same name having running processes in the cluster, which may lead to data corruption or data inconsistency when using shared storage or common API endpoints.
```
2016-11-05 11:19:04 -07:00
..
config update default run function for sub-commands 2016-10-31 10:08:12 -04:00
rollout Merge pull request #35206 from juanvallejo/jvallejo/exit-w-errorcode-on-non-existent-cmds 2016-11-05 07:33:46 -07:00
set Merge pull request #35206 from juanvallejo/jvallejo/exit-w-errorcode-on-non-existent-cmds 2016-11-05 07:33:46 -07:00
templates autogenerated 2016-10-21 17:32:32 -07:00
testing Merge pull request #36085 from deads2k/cli-05-generic-print 2016-11-04 08:17:02 -07:00
util Merge pull request #35206 from juanvallejo/jvallejo/exit-w-errorcode-on-non-existent-cmds 2016-11-05 07:33:46 -07:00
annotate_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
annotate.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
apiversions.go update various commands to adapt the new Factory interface 2016-10-13 21:01:14 +08:00
apply_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
apply.go Implements --prune-whitelist(-w) flag to overwrite default whitelist for --prune 2016-11-01 14:02:00 -07:00
attach_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
attach.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
autoscale.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
BUILD make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
clusterinfo_dump_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
clusterinfo_dump.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
clusterinfo.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
cmd_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
cmd.go Merge pull request #35206 from juanvallejo/jvallejo/exit-w-errorcode-on-non-existent-cmds 2016-11-05 07:33:46 -07:00
completion.go Add boilerplate to kubectl completion bash 2016-10-21 14:07:38 -07:00
convert.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
cp_test.go add kubectl cp 2016-10-29 20:24:54 -07:00
cp.go add kubectl cp 2016-10-29 20:24:54 -07:00
create_configmap_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_configmap.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_deployment_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
create_deployment.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_namespace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_namespace.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_quota_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_quota.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_secret_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_secret.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
create_service_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_service.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
create_serviceaccount_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_serviceaccount.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
delete_test.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
delete.go Merge pull request #35484 from smarterclayton/delete_warning 2016-11-05 11:19:04 -07:00
describe_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
describe.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
drain_test.go Merge pull request #35664 from ymqytw/update_drain_test 2016-10-30 04:30:18 -07:00
drain.go fix drain test flake 2016-10-24 09:32:49 -07:00
edit.go kubectl: make edit work with lists again 2016-11-03 13:12:22 +01:00
exec_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
exec.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
explain.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
expose_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
expose.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
get_test.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
get.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
help.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
label_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
label.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
logs_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
logs.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
options.go update kubectl help output for better organization 2016-08-20 08:03:39 +08:00
patch_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
patch.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
portforward_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
portforward.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
proxy.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
replace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
replace.go make kubectl replace generic 2016-11-04 07:50:31 -04:00
rollingupdate_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
rollingupdate.go Update clientset generator to use RESTClient interface instead of the RESTClient data type 2016-10-21 10:13:51 +02:00
run_test.go Merge pull request #35732 from fabianofranz/run_cant_dryrun_with_attach 2016-10-30 13:07:28 -07:00
run.go Merge pull request #35732 from fabianofranz/run_cant_dryrun_with_attach 2016-10-30 13:07:28 -07:00
scale.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
stop.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
taint_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
taint.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
top_node_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
top_node.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
top_pod_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
top_pod.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
top_test.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
top.go update default run function for sub-commands 2016-10-31 10:08:12 -04:00
version.go update various commands to adapt the new Factory interface 2016-10-13 21:01:14 +08:00