Skip to content

Commit f56d28e

Browse files
committed
feat(agents): run buzz-sandbox-reaper reconcile as an in-cluster service
Wire the reaper modules into the `reconcile` subcommand: load the JSON config, build the in-cluster client and S3 store, run one loop per namespace beside the /metrics, /healthz, and /readyz listener, and drain in-flight passes on SIGTERM. `--once` runs a single pass per namespace and prints a summary; `--dry-run` decides without writing. Document the flags, configuration, RBAC, and in-memory limits in docs/remote-agents.md. Signed-off-by: Tee8z <[email protected]>
1 parent 9ce44fa commit f56d28e

4 files changed

Lines changed: 479 additions & 5 deletions

File tree

‎Cargo.lock‎

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/buzz-sandbox-reaper/Cargo.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ futures-util = { workspace = true }
2222
serde = { workspace = true }
2323
serde_json = { workspace = true }
2424
chrono = { workspace = true }
25+
anyhow = { workspace = true }
26+
clap = { version = "4", features = ["derive", "env"] }
2527
axum = { workspace = true }
2628
http = "1"
2729
http-body-util = "0.1"
2830
metrics = { workspace = true }
2931
metrics-exporter-prometheus = { workspace = true }
3032
tracing = { workspace = true }
33+
tracing-subscriber = { workspace = true }
3134
aws-config = { version = "1", default-features = false, features = ["rt-tokio", "default-https-client"] }
3235
aws-sdk-s3 = { version = "1", default-features = false, features = ["rt-tokio", "default-https-client"] }
36+
# Same reason as buzz-backend-kubernetes: the process-level CryptoProvider is
37+
# installed explicitly because the workspace unifies ring and aws-lc-rs.
38+
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
3339

3440
[dev-dependencies]
3541
tower = { workspace = true }

0 commit comments

Comments
 (0)