Currently, some circumstances may cause waitForDelete to never succeed after the pod has been marked for deletion. In particular, Nodes that are unresponsive and have pods with local-storage will not be able to successfully drain. We should allow drain to ignore pods that have a DeletionTimestamp older than a user-provided age. This will allow controllers utilizing kubectl/drain to optionally account for a pod that cannot be removed due to a misbehaving node. Kubernetes-commit: da53044abdf8c8a9771a5c3dfd861f0c4ec78c40 |
||
|---|---|---|
| .. | ||
| drain.go | ||
| drain_test.go | ||