swarm-controller: move the forge concern into its own module
Refs #6897
This commit is contained in:
parent
ca16980a06
commit
a9df331469
1 changed files with 44 additions and 37 deletions
|
|
@ -83,7 +83,7 @@ needs `deploy.forgejo.enable` or a hive on its host.
|
|||
|
||||
## Registration
|
||||
|
||||
1. **swarm-controller** (`swarm-controller/src/forge/runner_token.rs`) reads
|
||||
1. **swarm-controller** (`swarm-controller/src/git_forge/forge/runner_token.rs`) reads
|
||||
the forge's instance-wide token from
|
||||
`GET /api/v1/admin/runners/registration-token` at start and every five
|
||||
minutes, and writes it to the secret store at
|
||||
|
|
@ -163,7 +163,7 @@ warns about it.
|
|||
<!-- vale write-good.Passive = YES -->
|
||||
|
||||
The **swarm controller** seeds the mirror in its swarm-wide forge-objects
|
||||
pass (`swarm-controller/src/forge/objects.rs`), beside the orgs it ensures.
|
||||
pass (`swarm-controller/src/git_forge/forge/objects.rs`), beside the orgs it ensures.
|
||||
`glue-forge-controller.nix` forwards the effective mirror list as
|
||||
`SWARM_CONTROLLER_FORGE_MIRRORS` in the `swarm-controller` service
|
||||
environment (JSON-encoded `[{upstream, dest}]` list). It reads the list of
|
||||
|
|
@ -287,7 +287,7 @@ builder — disk-pressure collection at least runs while nothing is mid-copy.
|
|||
## References
|
||||
|
||||
- `nix/host-modules/swarm-ci-runner.nix`: runner configuration, token fetch, re-registration step, container setup.
|
||||
- `swarm-controller/src/forge/runner_token.rs`: publishes the registration token.
|
||||
- `swarm-controller/src/git_forge/forge/runner_token.rs`: publishes the registration token.
|
||||
- `.forgejo/workflows/ci.yml`: workflow definition.
|
||||
- `docs/5-project/process/gotchas.md`: nix sandboxing limitations in containers.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue