Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
flostadler committed Jul 1, 2024
1 parent e3b892b commit dd7d8d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,9 @@ export function createCore(
// Create the access entries if the authentication mode supports it.
let accessEntries: aws.eks.AccessEntry[] | undefined = undefined;
if (supportsAccessEntries(args.authenticationMode)) {
let createdAccessEntries: aws.eks.AccessEntry[] = [];

// This additionally maps the defaultInstanceRole to a EC2_LINUX access entry which allows the nodes to register & communicate with the EKS control plane.
if (defaultInstanceRole) {
createdAccessEntries = createAccessEntries(
accessEntries = createAccessEntries(
name,
eksCluster.name,
{
Expand All @@ -859,7 +857,7 @@ export function createCore(
);
}

accessEntries = createdAccessEntries.concat(
accessEntries = (accessEntries || []).concat(
createAccessEntries(name, eksCluster.name, args.accessEntries || {}, {
parent,
provider,
Expand Down

0 comments on commit dd7d8d2

Please sign in to comment.