Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue d042a1d7d1 Merge pull request #51595 from WanLinghao/kubectl_cp_error
Automatic merge from submit-queue (batch tested with PRs 51438, 52182, 51607, 47912, 51595). 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>..

fix kubectl cp command error

fix kubectl cp command error.

modified:   pkg/kubectl/cmd/cp.go



**What this PR does / why we need it**:
fix kubectl cp error.
it happens when copy directory to pod and the directory path ends with '/'.
for example:
kubectl cp /tmp/test/ test-pod:/tmp/test/
it will fail with 
error: stat /tmp/test/test: no such file or directory

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

**Special notes for your reviewer**:

**Release note**:

```release-note
```
2017-09-23 08:09:54 -07:00
.github
api Generated code. 2017-09-20 00:15:24 -04:00
build Merge pull request #52798 from rphillips/fixes/restore_e2fsprogs_hyperkube 2017-09-20 15:44:06 -07:00
cluster Merge pull request #47912 from jacekn/runtime-config 2017-09-23 08:09:51 -07:00
cmd Merge pull request #50006 from huangjiuyuan/fix-cm-option-test 2017-09-23 04:02:54 -07:00
docs Generated code. 2017-09-20 00:15:24 -04:00
examples Merge pull request #51929 from ConnorDoyle/cpu-manager-examples 2017-09-23 06:16:06 -07:00
federation Merge pull request #51438 from zhangxiaoyu-zidif/refactor-federation-dns-test-sets 2017-09-23 07:55:00 -07:00
Godeps Merge pull request #52015 from m1093782566/flush-ipvs 2017-09-23 06:16:09 -07:00
hack Merge pull request #52083 from billy2180/fix-some-comments 2017-09-23 07:14:03 -07:00
logo
pkg Merge pull request #51595 from WanLinghao/kubectl_cp_error 2017-09-23 08:09:54 -07:00
plugin Merge pull request #51582 from jiulongzaitian/myfeature 2017-09-22 23:36:02 -07:00
staging Merge pull request #52182 from cheftako/flags 2017-09-23 08:09:46 -07:00
test Merge pull request #52134 from yujuhong/minor-test-fixes 2017-09-23 07:14:05 -07:00
third_party Use buildozer to remove deprecated automanaged tags 2017-08-11 09:31:50 -07:00
translations Merge pull request #51463 from lucab85/i18n-Italian 2017-09-23 04:02:51 -07:00
vendor Merge pull request #52015 from m1093782566/flush-ipvs 2017-09-23 06:16:09 -07:00
.bazelrc
.generated_files
.gitattributes
.gitignore make clean will remove all gitignored files 2017-09-04 11:04:09 -07:00
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md Update TOC of CHANGELOG 2017-09-09 13:38:29 +08:00
CHANGELOG-1.3.md Move 1.3.* release notes out of CHANGELOG.md 2017-09-15 11:21:25 +08:00
CHANGELOG-1.4.md Move 1.4.* release notes out of CHANGELOG.md 2017-09-19 20:22:07 +08:00
CHANGELOG-1.5.md Move 1.5.* release notes out of CHANGELOG.md 2017-09-19 20:22:07 +08:00
CHANGELOG-1.6.md fix some error link of changelog.md and changelog-1.6.md 2017-09-22 15:41:20 +08:00
CHANGELOG.md Merge pull request #52895 from jianglingxia/jlx-proposals 2017-09-22 20:09:35 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml Merge pull request #51848 from xiangpengzhao/milestone-label 2017-09-05 15:46:19 -07:00
LICENSE
Makefile
Makefile.generated_files
OWNERS Fix my incorrect username in #46649 2017-08-10 11:59:54 -07:00
OWNERS_ALIASES Merge pull request #52108 from cmluciano/cml/addcmlucianomilestone 2017-09-23 07:14:00 -07:00
README.md Add CII Best Practices Badge 2017-08-22 10:56:16 -05:00
SUPPORT.md Add a SUPPORT.md file for github 2017-08-11 14:42:36 -04:00
Vagrantfile
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

If you are less impatient, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics