From ef7b0f7b7c1052a2eeeb640cf855cca348c30398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 2 Dec 2022 12:47:16 +0200 Subject: [PATCH] Make service listing configurable --- camtiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camtiler.py b/camtiler.py index fc5f8f5..aab43f7 100755 --- a/camtiler.py +++ b/camtiler.py @@ -24,7 +24,7 @@ if not targets: # If no targets are specified, fall back to Kube API config.load_incluster_config() v1 = client.CoreV1Api() - for i in v1.list_namespaced_service(SERVICE_NAMESPACE, label_selector=SERVICE_LABEL_SELETOR).items: + for i in v1.list_namespaced_service(SERVICE_NAMESPACE, label_selector=SERVICE_LABEL_SELECTOR).items: url = "http://%s:%d/bypass" % (i.metadata.name, i.spec.ports[0].port) targets.append((i.metadata.name, url))