HACK FOR REVIEW: use nodes from bgo region only
NOTE: this will not work in any cloud except nrec. Change-Id: I14031ddd42fafd99a3f9742b5af97d057319c8bc
This commit is contained in:
@@ -48,6 +48,7 @@ public class NebulousAppDeployer {
|
||||
new AttributeRequirement("image", "operatingSystem.family",
|
||||
RequirementOperator.IN, OperatingSystemFamily.UBUNTU.toString()),
|
||||
new AttributeRequirement("image", "name", RequirementOperator.INC, "22"),
|
||||
new AttributeRequirement("location", "name", RequirementOperator.EQ, "bgo"),
|
||||
new AttributeRequirement("hardware", "ram", RequirementOperator.GEQ, "8192"),
|
||||
new AttributeRequirement("hardware", "cores", RequirementOperator.GEQ, "4"));
|
||||
}
|
||||
@@ -168,6 +169,8 @@ public class NebulousAppDeployer {
|
||||
Map<String, List<Requirement>> componentRequirements = KubevelaAnalyzer.getClampedRequirements(kubevela);
|
||||
Map<String, Integer> nodeCounts = KubevelaAnalyzer.getNodeCount(kubevela);
|
||||
List<Requirement> controllerRequirements = getControllerRequirements(appUUID);
|
||||
componentRequirements.forEach(
|
||||
(k, reqs) -> reqs.add(new AttributeRequirement("location", "name", RequirementOperator.EQ, "bgo")));
|
||||
|
||||
Main.logFile("component-requirements-" + appUUID + ".txt", componentRequirements);
|
||||
Main.logFile("component-counts-" + appUUID + ".txt", nodeCounts);
|
||||
|
Reference in New Issue
Block a user