From 192dddd52f2fd7e6cbf835118863e165005ec665 Mon Sep 17 00:00:00 2001 From: shapirov Date: Tue, 27 Jun 2023 16:49:28 -0400 Subject: [PATCH] renamed function name to describe cluster --- lib/cluster-providers/import-cluster-provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cluster-providers/import-cluster-provider.ts b/lib/cluster-providers/import-cluster-provider.ts index 39dda9bc7..af2601fff 100644 --- a/lib/cluster-providers/import-cluster-provider.ts +++ b/lib/cluster-providers/import-cluster-provider.ts @@ -60,7 +60,7 @@ export class ImportClusterProvider implements ClusterProvider { public static async fromClusterLookup(clusterName: string, region: string, kubectlRole: IRole): Promise { - const sdkCluster = await getCluster(clusterName, process.env.CDK_DEFAULT_REGION!); + const sdkCluster = await describeCluster(clusterName, process.env.CDK_DEFAULT_REGION!); return this.fromClusterAttributes(sdkCluster, kubectlRole); } @@ -89,7 +89,7 @@ export class ImportClusterProvider implements ClusterProvider { * @param region * @returns */ -export async function getCluster(clusterName: string, region: string): Promise { +export async function describeCluster(clusterName: string, region: string): Promise { const client = new sdk.EKSClient({ region }); const input: sdk.DescribeClusterRequest = { name: clusterName