From 258e0154fadefb905e52a9666a4c84d7b32cab51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 6 Dec 2020 11:06:10 +0100 Subject: [PATCH] minor fixes --- src/kuberclient.py | 2 +- src/schemas.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kuberclient.py b/src/kuberclient.py index b106c19..e818700 100644 --- a/src/kuberclient.py +++ b/src/kuberclient.py @@ -35,7 +35,7 @@ class Kubectl: data={"TYPE": self.streamtype, "STREAM_KEY": self.stream_key, "PUSH_URLS": self.push_urls, "FFMPEG_ARGS": self.ffmpeg_args, "ENCODE_PUSH_URL": self.encode_push_url}) - client.CoreV1Api().create_namespaced_config_map(namespace="videon", name=self.name, body=configmap) + client.CoreV1Api().create_namespaced_config_map(namespace="videon", body=configmap) def __update_configmap(self): configmap = client.V1ConfigMap(api_version="v1", kind="ConfigMap", diff --git a/src/schemas.py b/src/schemas.py index 22d7497..dbc0754 100644 --- a/src/schemas.py +++ b/src/schemas.py @@ -49,8 +49,8 @@ class IngestInputSchema(ma.Schema): class EncodeInputSchema(ma.Schema): - inputNeighbour = fields.UUID(required=True) - outputNeighbours = fields.List(fields.UUID(), required=True) + inputNeighbour = fields.UUID(required=False) + outputNeighbours = fields.List(fields.UUID(), required=False) bitrate = fields.Integer(required=False) width = fields.Integer(required=False) height = fields.Integer(required=False)