Skip to content

Agent Mesh

kind, charts: guard the e2e helm fallback and fix the README config wording

Tomas Tormodaa517d07bc6
diff --git a/charts/sam-node/README.md b/charts/sam-node/README.md
index 13324ac3..6c1f7893 100644
--- a/charts/sam-node/README.md
+++ b/charts/sam-node/README.md
@@ -40,8 +40,9 @@ in a base file and the service description in its own, then pass both:
The service container and the node share the pod's network, so `target_url`
points at `127.0.0.1:<port>`. Services declared in `config.services` are
advertised to the mesh via DHT and gossip; `config.attenuation` narrows what
-the node's credential permits. The config file is read once at node startup —
-the chart rolls the pods on config changes (checksum annotation).
+the node's credential permits. Your `config` values are merged over the chart's
+defaults and rendered as `sam-node.yaml` at startup — the chart rolls the pods
+on config changes (checksum annotation).
## Values
@@ -52,7 +53,7 @@ the chart rolls the pods on config changes (checksum annotation).
| `apiToken` | `devtoken` | Bearer token for the node's local REST API |
| `bindAddr` | `127.0.0.1:8080` | Node API bind address (loopback = pod-private) |
| `extraArgs` | `[]` | Extra sam-node args |
-| `config` | empty services | Rendered verbatim as `sam-node.yaml` |
+| `config` | empty services | Merged over the chart's defaults and rendered as `sam-node.yaml` |
| `service.image` | `""` | Service container image; empty = bare node |
| `service.name/command/env/ports/resources` | — | Service container spec |
| `image.repository/tag/pullPolicy` | `sam-node:local` | Node image |
diff --git a/development/kind/test-mesh-e2e.sh b/development/kind/test-mesh-e2e.sh
index 83568485..7cf1f4b5 100755
--- a/development/kind/test-mesh-e2e.sh
+++ b/development/kind/test-mesh-e2e.sh
@@ -20,7 +20,10 @@ NAMESPACE="sam-kind"
# Same helm fallback as run.sh: CI and dev boxes may only have ./bin/helm.
HELM="helm"
-command -v helm >/dev/null 2>&1 || HELM="./bin/helm"
+if ! command -v helm >/dev/null 2>&1; then
+ [[ -x "./bin/helm" ]] || { echo "missing prerequisite: helm (install helm or place it in ./bin/helm)" >&2; exit 1; }
+ HELM="./bin/helm"
+fi
echo "== Deploying calc-mcp via charts/sam-node =="
docker build -t calc-mcp:local development/examples/calc-mcp