258 lines
5.2 KiB
JSON
258 lines
5.2 KiB
JSON
{
|
||
"version": "1.1",
|
||
"id": "resource-controller",
|
||
"title": "resource-controller runtime fixture",
|
||
"question": "Does the resource-controller logical composition render correctly?",
|
||
"type": "architecture",
|
||
"direction": "LR",
|
||
"audience": [
|
||
"renderer maintainer"
|
||
],
|
||
"summary": "Executable resource-controller fixture.",
|
||
"alt": "Executable technical diagram fixture for the resource-controller composition profile.",
|
||
"long_description": "This fixture validates the node roles, edges, and layout rules of the resource-controller profile.",
|
||
"source_context": {
|
||
"document": "examples/runtime-profiles/fixture.md",
|
||
"document_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
"anchor": {
|
||
"kind": "line",
|
||
"value": 1,
|
||
"line": 1
|
||
}
|
||
},
|
||
"composition": {
|
||
"profile": "resource-controller",
|
||
"diagram_only": true,
|
||
"reference_ids": [
|
||
"dbaas-controller"
|
||
],
|
||
"rationale": "Runtime regression fixture for resource-controller.",
|
||
"focus_node": "manager"
|
||
},
|
||
"groups": [],
|
||
"nodes": [
|
||
{
|
||
"id": "user",
|
||
"label": "User",
|
||
"kind": "actor",
|
||
"role": "actor",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "actor"
|
||
},
|
||
{
|
||
"id": "db-service",
|
||
"label": "DB Service",
|
||
"kind": "resource",
|
||
"role": "resource-spec",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "document",
|
||
"details": [
|
||
"vmCount: 3",
|
||
"vCPU: 2",
|
||
"memory: 8GB",
|
||
"maxclient: 3000"
|
||
]
|
||
},
|
||
{
|
||
"id": "manager",
|
||
"label": "DBaaS Manager",
|
||
"kind": "controller",
|
||
"role": "controller",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "controller",
|
||
"emphasis": "primary"
|
||
},
|
||
{
|
||
"id": "vm-cr",
|
||
"label": "VM Custom Resource ×3",
|
||
"kind": "resource",
|
||
"role": "custom-resource",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "document",
|
||
"details": [
|
||
"2 vCPU",
|
||
"8GB RAM"
|
||
]
|
||
},
|
||
{
|
||
"id": "db-cr",
|
||
"label": "DB Instance CR ×3",
|
||
"kind": "resource",
|
||
"role": "custom-resource",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "document",
|
||
"details": [
|
||
"maxclient: 3000",
|
||
"timeout: 5s"
|
||
]
|
||
},
|
||
{
|
||
"id": "vm",
|
||
"label": "VM + dbaas-agent",
|
||
"kind": "runtime",
|
||
"role": "runtime-resource",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"details": [
|
||
"create VM"
|
||
]
|
||
},
|
||
{
|
||
"id": "db",
|
||
"label": "DB",
|
||
"kind": "database",
|
||
"role": "runtime-resource",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false,
|
||
"shape": "database",
|
||
"details": [
|
||
"DB command"
|
||
]
|
||
}
|
||
],
|
||
"edges": [
|
||
{
|
||
"id": "create-spec",
|
||
"from": "user",
|
||
"to": "db-service",
|
||
"label": "create",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "watch-spec",
|
||
"from": "db-service",
|
||
"to": "manager",
|
||
"label": "watch",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "create-vm-cr",
|
||
"from": "manager",
|
||
"to": "vm-cr",
|
||
"label": "create ×3",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "create-db-cr",
|
||
"from": "manager",
|
||
"to": "db-cr",
|
||
"label": "create ×3",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "materialize-vm",
|
||
"from": "vm-cr",
|
||
"to": "vm",
|
||
"label": "reconcile",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "materialize-db",
|
||
"from": "db-cr",
|
||
"to": "db",
|
||
"label": "reconcile",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
},
|
||
{
|
||
"id": "agent-command",
|
||
"from": "vm",
|
||
"to": "db",
|
||
"label": "DB command",
|
||
"kind": "request",
|
||
"evidence": [
|
||
{
|
||
"start_line": 1,
|
||
"end_line": 1
|
||
}
|
||
],
|
||
"assumption": false
|
||
}
|
||
],
|
||
"legend": [],
|
||
"metadata": {
|
||
"fixture": true
|
||
}
|
||
}
|