Fix handling of ":" in filenames in kubectl cp #78622
What type of PR is this?
What this PR does / why we need it:
This cleans up the filename handling and parsing inside kubectl-cp. Makes handling of files with ":" better, and adds a note in the docs about how it works.
It also adds support for the scp-like copy format "kubectl cp file ns/pod:", essentially resulting in "kubectl cp file ns/pod:.". This allows you to copy files to the containers working direcory without writing the trailing dot (a must for us who are used to scp).
And, it fixes the error message (and the strange behavior trying
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Hi @odinuge. Thanks for your PR.
I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with
Once the patch is verified, the new status will be reflected by the
I understand the commands that are listed here.
referenced this pull request
Jun 14, 2019
[APPROVALNOTIFIER] This PR is NOT APPROVED
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing
@odinuge: Cannot trigger testing until a trusted user reviews the PR and leaves an