Files
kubernetes/pkg
Kubernetes Submit Queue 9ec2860124 Merge pull request #60565 from WanLinghao/kubectl_cp_slash
Automatic merge from submit-queue (batch tested with PRs 60990, 60947, 45275, 60565, 61091). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubectl cp command bug fix

**What this PR does / why we need it**:
	when copy file from host to pod like this:	
        1.kubectl copy /tmp/test-file test-pod:/
	2.kubectl copy /tmp/test-file test-pod:
	example 1 will fail, example 2 will cause a panic.
	This patch fix bugs above.


**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #60564

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-03-30 11:53:13 -07:00
..
2018-03-13 15:06:38 +08:00
2018-02-16 13:43:01 -08:00
2018-03-30 16:52:42 +08:00
2018-02-27 21:21:14 -08:00
2018-03-30 07:38:19 +00:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-02-16 13:43:01 -08:00
2018-01-15 23:17:19 +08:00
2018-03-13 17:20:16 +08:00