From a4811397488e82a4e0b7ce3ae222a5198e5b7d0d Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 28 Mar 2024 19:56:47 +0100 Subject: [PATCH] Create pod on demand --- core/app/handlers/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/app/handlers/core.py b/core/app/handlers/core.py index 655550b..c0ac9c4 100644 --- a/core/app/handlers/core.py +++ b/core/app/handlers/core.py @@ -22,8 +22,8 @@ def create_room(): pod_body = client.V1Pod(api_version='v1', kind='Pod', metadata=pod_metadata, spec=pod_spec) - v1.create_namespaced_pod(namespace='default', body=pod_body) - + v1.create_namespaced_pod(namespace=namespace , body=pod_body) + return pod_id @hug.post('/delete-room') def delete_room(body):