kubectl/pkg/cmd/drain
Ivan Shvedunov 6bf46a2bba Fix crash in kubectl drain
When there's a pod that can't be evicted/deleted, and apiserver
connection breaks at a wrong moment, kubectl can panic due
to nil pointer dereference. This PR also improves drain tests
to avoid confusing panics with fatal errors.

Kubernetes-commit: 37226f8e8306475895d7e68eb52c57e57f00ee28
2019-10-11 22:12:26 +03:00
..
drain.go Fix crash in kubectl drain 2019-10-11 22:12:26 +03:00
drain_test.go Fix crash in kubectl drain 2019-10-11 22:12:26 +03:00