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

mark Cluster.canUseWatchApi() and Cluster.refreshAccessibility() as private

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-02-02 20:10:49 +02:00
parent 2e56e2c584
commit dc37900785

View File

@ -438,7 +438,7 @@ export class Cluster implements ClusterModel, ClusterState {
/**
* @internal
*/
async refreshAccessibility(): Promise<void> {
private async refreshAccessibility(): Promise<void> {
this.isAdmin = await this.isClusterAdmin();
this.isGlobalWatchEnabled = await this.canUseWatchApi({ resource: "*" });
@ -588,7 +588,7 @@ export class Cluster implements ClusterModel, ClusterState {
/**
* @internal
*/
async canUseWatchApi(customizeResource: V1ResourceAttributes = {}): Promise<boolean> {
private async canUseWatchApi(customizeResource: V1ResourceAttributes = {}): Promise<boolean> {
return this.canI({
verb: "watch",
resource: "*",