-
Notifications
You must be signed in to change notification settings - Fork 562
feat: allow to set the cwd in copyFromPod for use in tar #2635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow to set the cwd in copyFromPod for use in tar #2635
Conversation
|
Welcome @dherbolt! |
|
Looks like v1.3 uses "tar-fs" instead of the "tar" package, so I'm not sure how many changes it will require. |
|
I think we would want this to target the |
Yes, it should also be in the main branch, but as I wrote above, there is a change of npm |
5c77469 to
a14aa67
Compare
Have you verified that it requires extra changes? It looks like the cwd is only added to a |
You are right, it does not depend on the |
|
Hey @dherbolt thanks for the PR there are conflicts in the code which needs to be resolved, also there is the What would be extra nice would be to have a simple integration test that makes sure it works: https://github.com/kubernetes-client/javascript/blob/main/src/test/integration/index.ts If you need help or further guidance feel free to ask |
95afde0 to
2ecc4b3
Compare
I agree, the |
| name: Generate | ||
|
|
||
| on: | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I have no idea why there are changes in whitespaces after rebase... sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you back out the unrelated changes in this file and README.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I have no idea why there are changes in whitespaces after rebase... sorry.
For some unknown reason pre-commit hook reformated those files.
cjihrig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cjihrig, dherbolt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @cjihrig is there a plan to add this fix to version 1.1? I can see that it is now part of v1.4, but it would be nice to have it available in older versions because we use Kube 1.32, which is fully compatible with JS client v1.1. |
Not that I am aware of. @brendandburns might be a better person to answer that question. Although, according to the compatibility table, 1.32 and v1.4 should be compatible (the JS client may have additional features, but that shouldn't be a problem). |
|
Hmm... with version 1.4 and Kube 1.32, I'm getting an error: Looks like the WS connection is closed before all data is sent. I receive only 316 bytes. |
|
We have a Can you try the same from |
|
@mstruebing It would be nice to backport the commits into the 1.1 branch and release it as a patch. Thanks in advance. |
|
I just tried it and it was relatively easy: #2701 |
It is just a cherry-pick of the original commit