From 1b313ce09ad2f50ba1292e07e87386b2fa03e3df Mon Sep 17 00:00:00 2001 From: Julien Hagestedt Date: Thu, 15 Oct 2020 08:10:32 +0200 Subject: [PATCH] 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. --- src/watch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/watch.ts b/src/watch.ts index 5a98bb76f0..2efc74d814 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -64,6 +64,8 @@ export class Watch { uri: url, useQuerystring: true, json: true, + forever: true, + timeout: 0, }; await this.config.applyToRequest(requestOptions);