From c1a597b9a22d963e00512ee81d2720266aca2eeb Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Mon, 13 May 2024 15:54:56 -0700 Subject: [PATCH] update test route --- backend/orchestrator/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/orchestrator/src/index.ts b/backend/orchestrator/src/index.ts index a9ef2d9..a27e087 100644 --- a/backend/orchestrator/src/index.ts +++ b/backend/orchestrator/src/index.ts @@ -101,7 +101,9 @@ const dataSchema = z.object({ const namespace = "ingress-nginx" app.post("/test", async (req, res) => { - res.status(200).send({ message: "Orchestrator is up and running." }) + const pods = await coreV1Api.listNamespacedPod(namespace) + res.status(200).send({ pods: pods.body.items.map(item => item?.metadata?.generateName), message: "Orchestrator is up and running." }) + // res.status(200).send({ message: "Orchestrator is up and running." }) }) app.post("/start", async (req, res) => {