File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/aws-cdk-lib/aws-eks/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1818,13 +1818,13 @@ export class Cluster extends ClusterBase {
1818
1818
* @param options options for creating a new nodegroup
1819
1819
*/
1820
1820
public addNodegroupCapacity ( id : string , options ?: NodegroupOptions ) : Nodegroup {
1821
- const hasInferentiaOrTraniumInstanceType = [
1821
+ const hasInferentiaOrTrainiumInstanceType = [
1822
1822
options ?. instanceType ,
1823
1823
...options ?. instanceTypes ?? [ ] ,
1824
1824
] . some ( i => i && ( nodeTypeForInstanceType ( i ) === NodeType . INFERENTIA ||
1825
1825
nodeTypeForInstanceType ( i ) === NodeType . TRAINIUM ) ) ;
1826
1826
1827
- if ( hasInferentiaOrTraniumInstanceType ) {
1827
+ if ( hasInferentiaOrTrainiumInstanceType ) {
1828
1828
this . addNeuronDevicePlugin ( ) ;
1829
1829
}
1830
1830
return new Nodegroup ( this , `Nodegroup${ id } ` , {
You can’t perform that action at this time.
0 commit comments