Open LiilyZhang opened 10 months ago
Add 2 APIs to return compatible nodes in given org:
given constrains, return list of nodes. GET /compatibility/constraints/node?policyType={policyType} (policy type could be: nmp or dp) Input body:
GET /compatibility/constraints/node?policyType={policyType}
nmp
dp
{ "node_org": "userdev", "constraints": [ "node.owner == user123 && cpu > 200", "purpose == test", ... ] }
Check the node property based on the policy type
given list of patterns (GET /compatibility/patterns/node) Input body:
GET /compatibility/patterns/node
{ "node_org": "userdev", "patterns": [ "userdev/pattern1", "publicOrg/pattern1", ... ] }
User experience:
Add 2 APIs to return compatible nodes in given org:
given constrains, return list of nodes.
GET /compatibility/constraints/node?policyType={policyType}
(policy type could be:nmp
ordp
) Input body:Check the node property based on the policy type
given list of patterns (
GET /compatibility/patterns/node
) Input body:User experience: