Skip to content

Timeout middleware milliseconds - #3064

Merged
kubernetes-prow[bot] merged 5 commits into
kubernetes-client:mainfrom
davidgamero:timeout-middleware-milliseconds
Sep 24, 2026
Merged

kubernetes-prow[bot] merged 5 commits into
kubernetes-client:mainfrom
davidgamero:timeout-middleware-milliseconds

Conversation

@davidgamero

@davidgamero davidgamero commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

summary

  • add requestTimeoutMiddleware(milliseconds) and setRequestTimeoutOptions(milliseconds, options?)
  • add request option docs, javascript/typescript examples, and generated-client tests

fixes #1613.

builds on call-time middleware from #2275 and abort signal support from #2583. this exposes the middleware approach discussed in #2430 instead of adding a timeout parameter to makeApiClient().

this is an absolute request deadline, not an inactivity timeout. watch inactivity remains handled separately by #3022.

ai disclosure: opencode and gpt6

@kubernetes-prow kubernetes-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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. labels Sep 22, 2026
@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2026
@davidgamero
davidgamero force-pushed the timeout-middleware-milliseconds branch from 566e7ce to 7e11cba Compare September 22, 2026 16:27
@davidgamero
davidgamero marked this pull request as ready for review September 23, 2026 01:43
@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2026
@brendandburns

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 24, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, davidgamero

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [brendandburns,davidgamero]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot merged commit 088cb13 into kubernetes-client:main Sep 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

not possible to set a client timeout

2 participants