mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
fix(ec2): include processor manufacturer metadata (#7517)
Populate existing instance types with AWS-verified manufacturer values and expose them through DescribeInstanceTypes. Add SDK regression coverage for all 84 catalog entries. Closes floci-io/floci#7516
This commit is contained in:
1 parent
861d2ea259
commit
3b8c524df0
7 files changed
+227
No files matched your search
@@ -227,6 +227,7 @@ public class Ec2InstanceTypeCatalog {
|
||||
public int memoryMib;
|
||||
public int localStorageGiB;
|
||||
public List<String> supportedArchitectures = List.of();
|
||||
public String processorManufacturer;
|
||||
public List<String> supportedUsageClasses = List.of("on-demand", "spot");
|
||||
public Boolean currentGeneration;
|
||||
public Boolean encryptionInTransitSupported;
|
||||
@@ -242,6 +243,7 @@ public class Ec2InstanceTypeCatalog {
|
||||
type.put("instanceStorageSupported", localStorageGiB > 0);
|
||||
type.put("localStorageGiB", localStorageGiB);
|
||||
type.put("supportedArchitectures", List.copyOf(supportedArchitectures));
|
||||
type.put("processorManufacturer", processorManufacturer);
|
||||
type.put("supportedUsageClasses", List.copyOf(supportedUsageClasses));
|
||||
type.put("currentGeneration", currentGeneration == null || currentGeneration);
|
||||
type.put("burstablePerformanceSupported", isBurstablePerformanceType(instanceType));
|
||||
|
||||
@@ -5007,6 +5007,7 @@ public class Ec2QueryHandler {
|
||||
.end("instanceStorageInfo");
|
||||
}
|
||||
xml.start("processorInfo")
|
||||
.elem("manufacturer", (String) t.get("processorManufacturer"))
|
||||
.start("supportedArchitectures");
|
||||
for (String arch : (List<String>) t.get("supportedArchitectures")) {
|
||||
xml.elem("item", arch);
|
||||
|
||||
Reference in new issue
Block a user