kubernetes-client / kubernetes-client/javascript

not possible to set a client timeout

Open
#1,613 9 comments 8 reactions 0 assignees View on GitHub
good first issue javascript
Dominant language
TypeScript
Stars
2.3k
Forks
568
Avg merge
17h 57m
Merged PRs (30d)
41

Description

**Describe the bug**
At the moment, it seems not possible to set a client timeout since node-fetch requires passing an AbortController instance to the fetch request option's signal.

** Client Version **
1.0.0-rc3

**To Reproduce**

**Expected behavior**
It would be great to set a client's timeout when creating a k8sApi instance or invoking a request

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the client is created and how requests are invoked, focusing on the node-fetch signal option and AbortController requirement described here. Done means a timeout can be configured when creating a k8sApi instance or when invoking a request, with the behavior verified through the relevant request path.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.