Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: archive a destroyed agent's config repo, unarchive it when the name is created again

This commit is contained in:
damocles 2026-11-14 12:48:54 +01:00 • committed by mara
commit 7beb1193f4

View file

@ -219,6 +219,7 @@ pub(crate) async fn set_agent_state(
agents_md_initial::clear_on_destroy(&state, &hive, &agent).await;
egress_allow::clear_on_destroy(&state, &hive, &agent).await;
egress_deny::clear_on_destroy(&state, &hive, &agent).await;
crate::agent_config_repo::archive_on_destroy(&state, &hive, &agent).await;
}
Ok(Json(render(&declaration)))
}