kubectl cp command supports coping remote file into local directory#46762
Conversation
|
Hi @bruceauyeung. 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 I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@bruceauyeung the change looks ok, do you think it's possible to have a test case for this? |
|
@k8s-bot ok to test |
a57ae91 to
6b17b07
Compare
|
@soltysh test cases added, PTAL |
|
@soltysh some tests failed , is there anything i can do ? |
6b17b07 to
c8de5c6
Compare
|
/test pull-kubernetes-verify |
|
/ok-to-test |
|
@fabianofranz mind approving this one? |
|
/sig cli |
|
@bruceauyeung need to |
c8de5c6 to
4529b26
Compare
4529b26 to
8d3a816
Compare
|
sorry for the delay ! I just am busy looking after my newborn boy recently. |
|
hi @fabianofranz @soltysh, the vet error is already fixed. would you mind take a look at this? |
8d3a816 to
5bc6963
Compare
|
rebased and fixd a bug in untarAll function: if |
Signed-off-by: bruceauyeung <[email protected]>
5bc6963 to
19b5724
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bruceauyeung, fabianofranz, soltysh Associated issue requirement bypassed by: fabianofranz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest Review the full test history for this PR. |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
before this PR,
kubectl cp testpod:/tmp/testfile /homewill fail with error:with this PR,
kubectl cp testpod:/tmp/testfile /homewill successfully copy remotetestfileinto directory/homeother minor improvements to make codes follow Go code conventions and more robust
Release note:
Signed-off-by: bruceauyeung [email protected]