javascript icon indicating copy to clipboard operation
javascript copied to clipboard

feat: add timeout support to RequestContext and Isomorphic-fetch

Open dahaque opened this issue 2 weeks ago • 5 comments

This PR finally adds proper timeout support to the Node.js client.

Fixes #1613

Screenshot 2025-12-09 151328 Screenshot 2025-12-09 151348

First-time contributor, be gentle! 😅

dahaque avatar Dec 09 '25 09:12 dahaque

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dahaque 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 avatar Dec 09 '25 09:12 k8s-ci-robot

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: dahaque / name: Sadiq (3b9accd2eefcfaebd2a6e413680001d647f408f4, 6d924b4292fb2456f318afa296bcdc12010cac66, 8ce466f117e69509bd3bdb7a21737b62e27e52ba)

Welcome @dahaque!

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. :smiley:

k8s-ci-robot avatar Dec 09 '25 09:12 k8s-ci-robot

Thanks for contributing. A few notes:

  • Changes in src/gen should be made in the upstream repo: https://github.com/OpenAPITools/openapi-generator.
  • The test in this PR should follow the style and naming convention of existing tests.
  • At a quick glance, there at least seem to be some linter issues.

cjihrig avatar Dec 09 '25 14:12 cjihrig

As @cjihrig already said, the code in src/gen would be overwritten once we regenerate the client. So if any changes are needed in that part of the code it needs to go through the upstream repo and we need to regenerate the code.

mstruebing avatar Dec 09 '25 17:12 mstruebing