Skip to content

Commit 09ff70e

Browse files
committed
ic: aws: add arch info to the cached instance types
We will need this value to validate that the architecture specified in the install-config is supported by the instance type.
1 parent 51fec3d commit 09ff70e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/asset/installconfig/aws/instancetypes.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
type InstanceType struct {
1414
DefaultVCpus int64
1515
MemInMiB int64
16+
Arches []string
1617
}
1718

1819
// instanceTypes retrieves a list of instance types for the given region.
@@ -27,6 +28,7 @@ func instanceTypes(ctx context.Context, session *session.Session, region string)
2728
types[*info.InstanceType] = InstanceType{
2829
DefaultVCpus: aws.Int64Value(info.VCpuInfo.DefaultVCpus),
2930
MemInMiB: aws.Int64Value(info.MemoryInfo.SizeInMiB),
31+
Arches: aws.StringValueSlice(info.ProcessorInfo.SupportedArchitectures),
3032
}
3133
}
3234
return !lastPage

0 commit comments

Comments
 (0)