Skip to content

Commit

Permalink
renamed function name to describe cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
shapirov103 committed Jun 27, 2023
1 parent b06175a commit 192dddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cluster-providers/import-cluster-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ImportClusterProvider implements ClusterProvider {
public static async fromClusterLookup(clusterName: string, region: string, kubectlRole: IRole):
Promise<ClusterProvider> {

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);
}

Expand Down Expand Up @@ -89,7 +89,7 @@ export class ImportClusterProvider implements ClusterProvider {
* @param region
* @returns
*/
export async function getCluster(clusterName: string, region: string): Promise<sdk.Cluster> {
export async function describeCluster(clusterName: string, region: string): Promise<sdk.Cluster> {
const client = new sdk.EKSClient({ region });
const input: sdk.DescribeClusterRequest = {
name: clusterName
Expand Down

0 comments on commit 192dddd

Please sign in to comment.