Skip to content

Agent Mesh

e2e: deploy calc-mcp through charts/sam-node

Tomas Tormode88f4a4b48d
diff --git a/.github/workflows/kind-mesh-e2e.yml b/.github/workflows/kind-mesh-e2e.yml
index 87ecbfdb..2bee0faa 100644
--- a/.github/workflows/kind-mesh-e2e.yml
+++ b/.github/workflows/kind-mesh-e2e.yml
@@ -61,7 +61,7 @@ jobs:
run: make build
- name: Bring up the kind mesh
- run: MESH_CONFIG=development/kind/mesh-config.e2e.yaml make kind-up ARGS="-s"
+ run: make kind-up ARGS="-s"
- name: Run e2e mesh tests
run: make kind-e2e-mesh
diff --git a/development/kind/test-mesh-e2e.sh b/development/kind/test-mesh-e2e.sh
index 7bda43b3..83568485 100755
--- a/development/kind/test-mesh-e2e.sh
+++ b/development/kind/test-mesh-e2e.sh
@@ -15,6 +15,21 @@
set -euo pipefail
+KCTX="kind-sam-kind"
+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"
+
+echo "== Deploying calc-mcp via charts/sam-node =="
+docker build -t calc-mcp:local development/examples/calc-mcp
+kind load docker-image --name sam-kind calc-mcp:local
+"${HELM}" --kube-context "${KCTX}" -n "${NAMESPACE}" install calc-mcp charts/sam-node \
+ -f development/kind/sam-node.values.yaml \
+ -f development/examples/calc-mcp/values.yaml
+kubectl --context "${KCTX}" -n "${NAMESPACE}" rollout status deployment/calc-mcp-sam-node --timeout=180s
+
# If running locally, we might want to store logs in a temp dir
LOG_DIR="${RUNNER_TEMP:-$(mktemp -d)}"