Skip to content

Commit

Permalink
Fix typo in maxVolumeLimits map
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Torres <[email protected]>
  • Loading branch information
torredil committed Dec 12, 2023
1 parent 32f40c7 commit 0862ff1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/volume_limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func GetMaxAttachments(nitro bool) int {
// / https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html
var maxVolumeLimits = map[string]int{
"d3.8xlarge": 3,
"d3.12xlarge": 3,
"d3en.12xlarge": 3,
"g5.48xlarge": 9,
"inf1.xlarge": 26,
"inf1.2xlarge": 26,
Expand Down
11 changes: 11 additions & 0 deletions pkg/driver/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,17 @@ func TestNodeGetInfo(t *testing.T) {
expMaxVolumes: 1,
outpostArn: emptyOutpostArn,
},
{
name: "d3en.12xlarge instance max EBS attachment limit",
instanceID: "i-123456789abcdef01",
instanceType: "d3en.12xlarge",
availabilityZone: "us-west-2b",
region: "us-west-2",
volumeAttachLimit: -1,
attachedENIs: 1,
expMaxVolumes: 1,
outpostArn: emptyOutpostArn,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
Expand Down

0 comments on commit 0862ff1

Please sign in to comment.