1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Do not make watch requests without resourceVersion

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-06-17 13:18:16 +03:00
parent dc2d7a08d3
commit 65ac45866c

View File

@ -332,6 +332,10 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
} }
private watchNamespace(namespace: string, abortController: AbortController) { private watchNamespace(namespace: string, abortController: AbortController) {
if (!this.api.getResourceVersion()) {
return;
}
let timedRetry: NodeJS.Timeout; let timedRetry: NodeJS.Timeout;
const watch = () => this.api.watch({ const watch = () => this.api.watch({
namespace, namespace,