Fix camtiler initialization code

This commit is contained in:
Lauri Võsandi 2022-02-13 11:43:04 +02:00 committed by Lauri Võsandi
parent b378cfd75b
commit 082639d5e3

View File

@ -22,7 +22,6 @@ if not targets:
config.load_incluster_config() config.load_incluster_config()
v1 = client.CoreV1Api() v1 = client.CoreV1Api()
for i in v1.list_namespaced_service("camtiler", label_selector="component=camdetect").items: for i in v1.list_namespaced_service("camtiler", label_selector="component=camdetect").items:
app.ctx.frames[i.metadata.name] = None
url = "http://%s:%d/bypass" % (i.metadata.name, i.spec.ports[0].port) url = "http://%s:%d/bypass" % (i.metadata.name, i.spec.ports[0].port)
targets.append((i.metadata.name, url)) targets.append((i.metadata.name, url))