swarm-otel: authelia is no longer declared as both a loopback and a published scrape target
#5215 moved authelia's scrape to `publishedScrapeTargets` and removed
its loopback entry from the authelia module. It was rebased at merge
onto c06aa78b6, which had already moved that loopback entry into
glue-otel-scrape-targets.nix, so the entry survived there. Every host
running authelia and the collector, `singleHostSwarm` included, then
failed swarm-otel.nix's job-name assertion.
The glue now declares only grafana and nats. forge-placement's case
that pinned authelia on loopback now pins its absence, and
swarm-otel-identity gains a case reading the assertion itself on the
single-host fixture, since the option-level case cannot fail a
rebuild the way the assertion does.
Fixes #5247
This commit is contained in:
parent
531cc6bf91
commit
07f093c400
4 changed files with 17 additions and 9 deletions
|
|
@ -138,15 +138,16 @@ let
|
|||
&& !(refusedOver bare "deploy.forgejo.sso.clientSecretFile");
|
||||
}
|
||||
{
|
||||
name = "a host running the collector and authelia, grafana and nats scrapes all three on loopback";
|
||||
# Authelia is a published target; ./swarm-otel-identity.nix covers it.
|
||||
name = "a host running the collector, authelia, grafana and nats scrapes grafana and nats on loopback, authelia not";
|
||||
ok =
|
||||
let
|
||||
t = servicesHere.services.hyperhive.swarm.otel.scrapeTargets;
|
||||
port = n: toString servicesHere.services.hyperhive.swarm.${n}.metricsPort;
|
||||
in
|
||||
t.authelia == "127.0.0.1:${port "authelia"}"
|
||||
&& t.grafana == "127.0.0.1:${port "grafana"}"
|
||||
&& t.nats == "127.0.0.1:${port "nats"}";
|
||||
t.grafana == "127.0.0.1:${port "grafana"}"
|
||||
&& t.nats == "127.0.0.1:${port "nats"}"
|
||||
&& !(t ? authelia);
|
||||
}
|
||||
{
|
||||
name = "hosting the swarm's shared services runs the forge";
|
||||
|
|
|
|||
Loading…
Reference in a new issue