swarm-controller: move the agents concern into its own module
Refs #6897
This commit is contained in:
parent
26ac7acb25
commit
eabcaab930
29 changed files with 38 additions and 26 deletions
|
|
@ -22,7 +22,7 @@ holds the hive directory, the agent roster and the job graph") is the
|
|||
**swarm-wide** one: `GET /api/agents` on swarm-controller reads
|
||||
straight from the swarm's authelia identity store over
|
||||
`swarm-authelia-bridge` (`swarm-controller/src/auth.rs::list_agent_identities`)
|
||||
— "every agent the swarm holds an identity for" (`swarm-controller/src/routes/agents.rs`'s
|
||||
— "every agent the swarm holds an identity for" (`swarm-controller/src/agents/routes.rs`'s
|
||||
`get_agents` doc comment). It's authoritative: an agent exists in the
|
||||
swarm if and only if it has an identity there, and `swarmctl agent
|
||||
create` (or the swarm UI, via `POST /api/agents`) writes that identity
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// /api/agents/status` — one row per roster agent (identity store is the
|
||||
// roster, so a never-reported agent still gets a row), each already
|
||||
// carrying its freshness/snapshot/config PR/wanted state, joined server-side
|
||||
// (see `get_agents_status` in `swarm-controller/src/routes/agents.rs`).
|
||||
// (see `get_agents_status` in `swarm-controller/src/agents/routes.rs`).
|
||||
//
|
||||
// Owns the "+ agent" trigger too — the roster this populates is the
|
||||
// natural home for the action that populates it. The form itself
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue