Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 90a4ac03dc Merge pull request #52161 from CaoShuFeng/kubectl_cp
Automatic merge from submit-queue (batch tested with PRs 52109, 52235, 51809, 52161, 50080). 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>..

Allow kubectl cp large amounts of files from container

When we try to copy out a dir with large amounts of files from container, we hit such error:

```bash
kubectl cp  mypod:/ ./a/
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
error: open a/usr/share/zoneinfo/Asia/Rangoon: too many open files
```

This is because kubectl opens too many files at the same. We should close them after Write() function.
**Release note**:
```
NONE
```
2017-09-23 10:26:52 -07:00
..
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-05 11:06:48 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-26 11:38:36 -04:00
2017-08-25 19:53:22 +08:00
2017-09-11 17:22:13 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-06-30 15:00:24 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-05 11:06:48 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-05-11 20:09:31 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-08-17 18:08:26 -04:00
2017-08-17 18:08:26 -04:00
2017-08-16 12:27:36 -07:00