swarm-controller: move the agents concern into its own module
Refs #6897
This commit is contained in:
parent
26ac7acb25
commit
eabcaab930
1 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue