Add auth exporter module: implement Kubernetes resources, exporter logic, and testing

This commit is contained in:
2025-10-03 00:26:47 +02:00
parent 0a0d4c9c15
commit eb60d37c2d
10 changed files with 489 additions and 2 deletions
@@ -0,0 +1,15 @@
locals {
app_version = var.tag
workdir = "${var.persistent_folder}/auth-exporter"
commands = [
"python -m venv /tmp/venv",
". /tmp/venv/bin/activate",
"pip install -r /exporter/requirements.txt",
"python /exporter/exporter.py --export-usernames"
]
exporter_script = file("${path.module}/resources/exporter.py")
requirements_txt = file("${path.module}/resources/requirements.txt")
exporter_checksum = md5(local.exporter_script)
requirements_checksum = md5(local.requirements_txt)
}