Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-02-11 08:28:59 +02:00
1 parent 71c2bc69d9
commit f70b3cff11
1 file changed
-8
-8
View File
@@ -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));
}