Ask for Ubuntu version 22
Change-Id: I3fbac79b3bf99147f22cc1de2550aaf243fb2d85
This commit is contained in:
parent
252d818c92
commit
e806f3e5ea
@ -118,8 +118,12 @@ public class KubevelaAnalyzer {
|
||||
String componentName = c.get("name").asText();
|
||||
ArrayList<Requirement> reqs = new ArrayList<>();
|
||||
if (includeNebulousRequirements) {
|
||||
// We want Ubuntu, version 22.04, and 2GB of RAM until we know
|
||||
// more about the size / cpu requirements of the nebulous
|
||||
// runtime.
|
||||
reqs.add(new AttributeRequirement("image", "operatingSystem.family",
|
||||
RequirementOperator.IN, OperatingSystemFamily.UBUNTU.toString()));
|
||||
reqs.add(new AttributeRequirement("image", "name", RequirementOperator.INC, "22"));
|
||||
reqs.add(new AttributeRequirement("hardware", "ram", RequirementOperator.GEQ, "2048"));
|
||||
}
|
||||
JsonNode cpu = c.at("/properties/cpu");
|
||||
|
@ -47,6 +47,7 @@ public class NebulousAppDeployer {
|
||||
return List.of(
|
||||
new AttributeRequirement("image", "operatingSystem.family",
|
||||
RequirementOperator.IN, OperatingSystemFamily.UBUNTU.toString()),
|
||||
new AttributeRequirement("image", "name", RequirementOperator.INC, "22"),
|
||||
new AttributeRequirement("hardware", "ram", RequirementOperator.GEQ, "8192"),
|
||||
new AttributeRequirement("hardware", "cores", RequirementOperator.GEQ, "4"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user