Include bind_dn field in secet (#13)
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 8m53s

This commit is contained in:
2025-04-22 00:21:23 +02:00
parent 58bb0b312a
commit 3b7e476759
6 changed files with 86 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
use std::sync::Arc;
use std::time::Duration;
use color_eyre::eyre::Context as _;
use dotenvy::dotenv;
use futures::StreamExt;
use k8s_openapi::api::core::v1::Secret;
@@ -54,12 +55,16 @@ async fn main() -> color_eyre::Result<()> {
info!(version = VERSION, "Starting");
let bind_dn_template =
std::env::var("BIND_DN_TEMPLATE").wrap_err("BIND_DN_TEMPLATE is not set")?;
let client = KubeClient::try_default().await?;
let data = Context::new(
"lldap.huizinga.dev",
client.clone(),
LldapConfig::try_from_env()?,
bind_dn_template,
);
let secrets = Api::<Secret>::all(client.clone());