Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: secrets handlers take their own sub-state via FromRef

This commit is contained in:
atlas 2026-11-29 13:07:33 +01:00 • committed by mara
commit b184f4e096
2 changed files with 274 additions and 77 deletions

View file

@ -583,7 +583,7 @@ mod tests {
// The backend environment's own save and delete leave them alone.
crate::backend_env::put_backend_env(
State(state.clone()),
State(crate::secrets::SecretsState::from_ref(&state)),
path("atlas"),
axum::Json(
serde_json::from_value(

View file

@ -752,7 +752,7 @@ pub async fn delete_backend_env(
e.problem()
})?;
crate::backend_egress::follow_env(&state, &agent, None).await?;
crate::backend_egress::follow_env(state.status.as_ref(), &agent, None).await?;
tracing::info!(%hive, %agent, "backend env deleted");
Ok(StatusCode::NO_CONTENT)