swarm-controller: archive a destroyed agent's config repo, unarchive it when the name is created again
This commit is contained in:
parent
814edd1d67
commit
7beb1193f4
1 changed files with 197 additions and 3 deletions
|
|
@ -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)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue