add label extract script

This commit is contained in:
zekro committed 2026-05-15 12:58:02 +02:00
1 parent 8be1e4ee93
commit 544363d077
1 file changed
+13
+13
View File
@@ -0,0 +1,13 @@
import yaml
LABEL = "leuchtturm.enable"
with open(0) as f:
res = yaml.safe_load(f)
for key, service in res["services"].items():
if "labels" not in service:
continue
labels = service["labels"]
if LABEL in labels:
print(key, end=" ")