kubernetes-client / kubernetes-client/javascript

cpFromPod / cpToPod is missing --retries flag

Open
#1,407 2 comments 2 reactions 2 assignees Claimed by @brendandburns View on GitHub
good first issue
Dominant language
TypeScript
Stars
2.3k
Forks
568
Avg merge
17h 57m
Merged PRs (30d)
41

Description

**Describe the bug**
`cpFromPod` / `cpToPod` silently fail on larger files, resulting in incomplete files.

** Client Version **
`0.20.0`

** Server Version **
`1.25.7+rke2r1`

**To Reproduce**
upload a larger file, at least 200MB. The kubernetes issue has gone into detail about network settings a.s.o.

**Expected behavior**
`cpFromPod` / `cpToPod` should try to upload the whole file or error out on premature disconnect.

**Environment (please complete the following information):**
- OS: Linux
- NodeJS Version 20

**Additional context**
Has been identified and 'fixed' in `kubectl cp` https://github.com/kubernetes/kubernetes/issues/60140 with the `--retries` flag.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.