Fix camtiler initialization code
This commit is contained in:
parent
b378cfd75b
commit
082639d5e3
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user