Files
kubernetes/pkg/kubectl/cmd
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-23 00:28:32 -05:00
2016-10-29 20:24:54 -07:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-26 19:59:25 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-30 12:46:59 -05:00
2017-02-06 22:32:01 -08:00
2017-02-22 09:27:42 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00