Commit 53416b37 authored by Jan Marchel's avatar Jan Marchel
Browse files

adding placementName attribute

parent c6e51422
Pipeline #21372 failed with stages
in 42 minutes and 7 seconds
......@@ -45,7 +45,7 @@ public class NodeCandidatesFetchingServiceImpl implements NodeCandidatesFetching
private static final String LOCATION_CLASS = "location";
private static final String CLOUD_CLASS = "cloud";
private static final String FAAS_ENVIRONMENT_CLASS = "environment";
private static final String NAME_CLASS = "name";
private final ProactiveClientServiceForGenerator proactiveClientServiceForGenerator;
@Override
......@@ -126,6 +126,8 @@ public class NodeCandidatesFetchingServiceImpl implements NodeCandidatesFetching
result.add(createNodeTypeRequirement(Arrays.asList(NodeType.IAAS, NodeType.BYON, NodeType.EDGE), resourceName));
}
getAttribute(requirementsMap, "placementName").ifPresent(attribute -> result.add(createRequirement(NAME_CLASS, "name", RequirementOperator.EQ, getValueAsString(attribute.getValue()))));
getAttribute(requirementsMap, "totalMemoryHasMin").ifPresent(attribute -> result.add(createRequirement(HARDWARE_CLASS, "ram", RequirementOperator.GEQ, getValueAsString(attribute.getValue()))));
getAttribute(requirementsMap, "totalMemoryHasMax").ifPresent(attribute -> result.add(createRequirement(HARDWARE_CLASS, "ram", RequirementOperator.LEQ, getValueAsString(attribute.getValue()))));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment