Tests that read ../../../mesh-catalog or ../../../mesh-host gave a verdict that depended on what sat beside the checkout: a stale or dirty sibling failed them on a desktop, and a missing one skipped them unseen. They now read the clone the build seat puts in MESH_CHECK_BESIDE, failing when it is absent there, and elsewhere a copy captured at a named commit. The skip had hidden that the builder test read a module retired by ADR 0190. The systemd reading test no longer counts the machine's own environment.d.
82 lines
1.6 KiB
Plaintext
82 lines
1.6 KiB
Plaintext
{
|
|
"module": "route-adapter",
|
|
"version": "1",
|
|
"slug": "radapt",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"provides": [
|
|
{
|
|
"name": "route",
|
|
"scope": "mesh",
|
|
"identity": false
|
|
}
|
|
],
|
|
"serves": {
|
|
"route": {}
|
|
},
|
|
"receives": {
|
|
"route": "${dir:routes-dir}/mesh.json"
|
|
},
|
|
"accesses": [
|
|
{
|
|
"id": "dynamic",
|
|
"path": "/services/traefik/dynamic",
|
|
"mode": "read-write"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "routes-dir",
|
|
"type": "directory",
|
|
"path": "/var/lib/route-adapter/routes",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "file",
|
|
"path": "${dir:state}/config.json",
|
|
"merge": "json",
|
|
"mode": "0644",
|
|
"content": "{\n \"dynamic\": \"/services/traefik/dynamic\",\n \"entrypoint\": \"websecure\",\n \"certificate-resolver\": \"le\",\n \"machine\": \"host.docker.internal\"\n}\n"
|
|
},
|
|
{
|
|
"id": "adapt",
|
|
"type": "process",
|
|
"name": "route-adapter",
|
|
"artifact": "code",
|
|
"run": [
|
|
"node",
|
|
"index.js"
|
|
],
|
|
"run-once": true,
|
|
"env": {
|
|
"MESH_RECEIVES": "${dir:routes-dir}/mesh.json",
|
|
"MESH_ROUTE_ADAPTER_CONFIG": "${dir:state}/config.json"
|
|
},
|
|
"restart-on": [
|
|
"received-route",
|
|
"config"
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"index.js"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|