kubectl/pkg/cmd/cp
Bilal Amarni aa373084bf [kubectl] Fail when local source file doesn't exist
When trying to upload an unexisting file to a pod,
kubectl currently doesn't print any error message
and terminates with a zero exit code.

This adds a check and fails explicitly in such cases.

Kubernetes-commit: 3fa5b504423f169723b911547cd22ae85da168e0
2020-04-22 11:09:41 +02:00
..
cp.go [kubectl] Fail when local source file doesn't exist 2020-04-22 11:09:41 +02:00
cp_test.go [kubectl] Fail when local source file doesn't exist 2020-04-22 11:09:41 +02:00