Skip to content

Commit 1b313ce

Browse files
authored
Fix timeout on watch.js requestOptions
The watching of Kubernetes object stops after 60 seconds - as the default timeout of 60 seconds is used. It should be set to 0 - so infinite or at least be more configureable. Using the RequestInterface to configure this is not the best option as in line 70 the request options gets applied to the config but not taken from any passed configuration. Also the forever flag could be set.
1 parent 906d227 commit 1b313ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/watch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ export class Watch {
6464
uri: url,
6565
useQuerystring: true,
6666
json: true,
67+
forever: true,
68+
timeout: 0,
6769
};
6870
await this.config.applyToRequest(requestOptions);
6971

0 commit comments

Comments
 (0)