Skip to content

Conversation

dherbolt
Copy link

It is just a cherry-pick of the original commit

Copy link

linux-foundation-easycla bot commented Sep 26, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Sep 26, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @dherbolt!

It looks like this is your first PR to kubernetes-client/javascript 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-client/javascript has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 26, 2025
@dherbolt
Copy link
Author

Looks like v1.3 uses "tar-fs" instead of the "tar" package, so I'm not sure how many changes it will require.

@cjihrig
Copy link
Contributor

cjihrig commented Sep 26, 2025

I think we would want this to target the main branch (otherwise, it will get lost again). Also, can you please sign the CLA.

@dherbolt
Copy link
Author

I think we would want this to target the main branch (otherwise, it will get lost again). Also, can you please sign the CLA.

Yes, it should also be in the main branch, but as I wrote above, there is a change of npm tar package in the main branch, so it will probably require more changes/testing.

@dherbolt dherbolt force-pushed the release-1.1.patch-dherbolt branch from 5c77469 to a14aa67 Compare September 26, 2025 14:23
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Sep 26, 2025
@cjihrig
Copy link
Contributor

cjihrig commented Sep 27, 2025

there is a change of npm tar package in the main branch

Have you verified that it requires extra changes? It looks like the cwd is only added to a tar system command, and not actually passed to the imported module.

@dherbolt dherbolt changed the base branch from release-1.1 to main September 27, 2025 06:52
@dherbolt
Copy link
Author

there is a change of npm tar package in the main branch

Have you verified that it requires extra changes? It looks like the cwd is only added to a tar system command, and not actually passed to the imported module.

You are right, it does not depend on the tar package. I got somehow confused. sorry.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 27, 2025
@mstruebing
Copy link
Member

Hey @dherbolt thanks for the PR there are conflicts in the code which needs to be resolved, also there is the cpToPod function which had the optional argument cwd argument as well, I think we should add it there as well.

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

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dherbolt
Once this PR has been reviewed and has the lgtm label, please assign mstruebing for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 27, 2025
@dherbolt dherbolt force-pushed the release-1.1.patch-dherbolt branch from 95afde0 to 2ecc4b3 Compare September 27, 2025 11:25
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Sep 27, 2025
@dherbolt
Copy link
Author

Hey @dherbolt thanks for the PR there are conflicts in the code which needs to be resolved, also there is the cpToPod function which had the optional argument cwd argument as well, I think we should add it there as well.

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

I agree, the copyToPod function should also support cwd argument. Unfornutelly, there is a change in the library used to pack the files ("tar" => "tar-fs"), so I will need more time to find how to pass the cwd arg into it.

name: Generate

on:
workflow_dispatch:
Copy link
Author

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.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants