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

View file

@ -32,7 +32,7 @@ let
hiveOtelSecret = import ./lib/hive-otel-secret.nix {
inherit (hyperhiveCfg.swarm.authelia) hiveClientPrefix;
inherit (hyperhiveCfg) hiveName;
inherit (hyperhiveCfg.deploy.hive-controller) hiveName;
};
havePair = cert: key: cert != null && key != null;
@ -47,7 +47,7 @@ let
# under the hive's own leaf.
swarm-bao-hive-otel-oidc =
otel.collector.enable
&& hyperhiveCfg.hiveName != null
&& hyperhiveCfg.deploy.hive-controller.hiveName != null
&& havePair baoDeploy.clientCertFile baoDeploy.clientKeyFile
&& otel.clientSecretFile == hiveOtelSecret.path;
# ./swarm-grafana.nix