diff --git a/src/renderer/api/kube-watch-api.ts b/src/renderer/api/kube-watch-api.ts index d7f52a2130..f2f50193db 100644 --- a/src/renderer/api/kube-watch-api.ts +++ b/src/renderer/api/kube-watch-api.ts @@ -35,14 +35,6 @@ export class KubeWatchApi { contextReady = when(() => Boolean(this.context)); - constructor() { - this.init(); - } - - private async init() { - await this.contextReady; - } - isAllowedApi(api: KubeApi): boolean { return Boolean(this.context?.cluster.isAllowedResource(api.kind)); }