Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue c4835f2626 Merge pull request #41864 from marun/kubectl-drain-orphans
Automatic merge from submit-queue (batch tested with PRs 41857, 41864, 40522, 41835, 41991)

kubectl: Allow 'drain --force' to remove orphaned pods

If the managing resource of a given pod (e.g. DaemonSet/ReplicaSet/etc) is deleted (effectively orphaning the pod), and ``kubectl drain --force`` is invoked on the node hosting the pod, the command would fail with an error indicating that the managing resource was not found.  This PR reduces the error to a warning if ``--force`` is specified, allowing nodes with orphaned pods to be drained.   

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1424678

cc: @derekwaynecarr 

```release-note
Allow drain --force to remove pods whose managing resource is deleted.
```
2017-02-26 11:13:53 -08:00
..
2017-02-23 00:28:32 -05:00
2017-02-22 08:54:08 -05:00
2017-01-11 09:09:48 -05:00
2017-02-23 00:28:32 -05:00
2017-01-11 09:09:48 -05:00
2016-07-16 13:48:21 -04:00
2017-01-11 09:09:48 -05:00
2017-01-11 09:09:48 -05:00
2017-01-20 08:04:53 -05:00
2017-01-11 09:09:48 -05:00
2017-01-25 17:32:22 -08:00
2017-01-30 12:46:59 -05:00
2017-01-20 08:04:53 -05:00
2017-01-11 09:09:48 -05:00
2017-02-10 17:58:59 +01:00
2017-01-11 09:09:48 -05:00
2017-01-29 21:41:44 +01:00
2017-01-26 13:54:40 -05:00
2017-02-13 13:40:34 -08:00
2017-01-11 09:09:48 -05:00
2017-01-11 09:09:48 -05:00
2017-01-11 09:09:48 -05:00
2017-01-26 13:54:40 -05:00
2017-02-13 13:40:34 -08:00
2016-12-14 12:39:49 -08:00