Skip to content

Commit 08d7e53

Browse files
committed
fix typo
1 parent a7dee7c commit 08d7e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/aws-cdk-lib/aws-eks/lib/cluster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,13 +1818,13 @@ export class Cluster extends ClusterBase {
18181818
* @param options options for creating a new nodegroup
18191819
*/
18201820
public addNodegroupCapacity(id: string, options?: NodegroupOptions): Nodegroup {
1821-
const hasInferentiaOrTraniumInstanceType = [
1821+
const hasInferentiaOrTrainiumInstanceType = [
18221822
options?.instanceType,
18231823
...options?.instanceTypes ?? [],
18241824
].some(i => i && (nodeTypeForInstanceType(i) === NodeType.INFERENTIA ||
18251825
nodeTypeForInstanceType(i) === NodeType.TRAINIUM));
18261826

1827-
if (hasInferentiaOrTraniumInstanceType) {
1827+
if (hasInferentiaOrTrainiumInstanceType) {
18281828
this.addNeuronDevicePlugin();
18291829
}
18301830
return new Nodegroup(this, `Nodegroup${id}`, {

0 commit comments

Comments
 (0)