Watch
0
0
Fork
You've already forked hyperhive
0

move hiveName to deploy.hive-controller; only a hive host needs a name

This commit is contained in:
atlas 2026-10-26 16:06:11 +01:00 • committed by mara
commit 0c6e8fc5a2
37 changed files with 402 additions and 215 deletions

View file

@ -391,6 +391,19 @@ let
&& !(builtins.elem container (wait baoWithHiveOtel).after)
&& !(builtins.elem container (wait baoWithHiveOtel).requires);
}
{
# What the hive collector presents and where it presents it, both derived
# from the hive's name: pinned so the name's option path can move without
# the collector's identity changing.
name = "the hive collector authenticates as hive-<name> and pushes to the swarm collector under the name's path";
ok =
let
otel = hiveOtel.services.hyperhive.swarm.otel;
in
hiveOtelSettings.extensions."oauth2client/swarm".client_id == "hive-h1"
&& hiveOtelSettings.extensions."oauth2client/swarm".endpoint_params.audience == "hive-h1"
&& hiveOtelSettings.exporters."otlphttp/swarm".endpoint == "https://${otel.domain}/h1";
}
];
in
runGroup "hive-otel" cases