Skip to content

Commit

Permalink
fitting in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
tam0ri committed Apr 9, 2024
1 parent 09cfe55 commit 89b635e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,7 @@ function isGpuInstanceType(instanceType: InstanceType): boolean {
//compare instanceType to known GPU InstanceTypes
const knownGpuInstanceTypes = [InstanceClass.P2, InstanceClass.P3, InstanceClass.P3DN, InstanceClass.P4DE, InstanceClass.P4D,
InstanceClass.G3S, InstanceClass.G3, InstanceClass.G4DN, InstanceClass.G4AD, InstanceClass.G5, InstanceClass.G5G,
InstanceClass.G6, InstanceClass.GR6,
InstanceClass.INF1, InstanceClass.INF2];
InstanceClass.G6, InstanceClass.GR6, InstanceClass.INF1, InstanceClass.INF2];
return knownGpuInstanceTypes.some((c) => instanceType.sameInstanceClassAs(InstanceType.of(c, InstanceSize.LARGE)));
}

Expand Down

0 comments on commit 89b635e

Please sign in to comment.