module-eval: set the hive-controller option only in tests that need a hive
The shared `hive` fixture turned `deploy.hive-controller.enable` on for every eval test. It is now off by default; `hiveWithController` turns it on, and the fixtures whose claims read the hive tier (hive-c0re, the queue-agent credential, the hive leaf, `deploy.hive-controller.*`, or an absence that is only meaningful with a hive present) use it. glue-nats-auth-bao-identity.nix still read the renamed `services.hyperhive.enable`, which printed the "Obsolete option" trace six times per CI run. The term is dropped: the pairing is gated on the queue and the minted PKI, as its sibling glue-nats-bao-identity.nix is.
This commit is contained in:
parent
db6648dfe6
commit
ea63b0d150
10 changed files with 47 additions and 31 deletions
|
|
@ -24,7 +24,7 @@
|
|||
# a certificate needs something that *runs* it. A case needing a rendered
|
||||
# file must stub what it drags in (`deploy.swarm-ui.package = pkgs.emptyDirectory`).
|
||||
#
|
||||
# `hive`/`agent`/`agentWith` builders, the shared cross-group helpers, and
|
||||
# `hive`/`hiveWithController`/`agent`/`agentWith` builders, the shared cross-group helpers, and
|
||||
# the `runGroup` derivation builder live in ./lib.nix; each file below
|
||||
# defines only the fixtures and cases its own cluster needs.
|
||||
{
|
||||
|
|
@ -59,7 +59,6 @@ let
|
|||
# just one level down. `recursiveUpdate` merges nested attrsets
|
||||
# all the way down instead.
|
||||
services.hyperhive = lib.recursiveUpdate {
|
||||
deploy.hive-controller.enable = true;
|
||||
hiveName = "h1";
|
||||
swarm.domain = "t.local";
|
||||
swarm.hives.h1.domain = "h1.t.local";
|
||||
|
|
@ -68,6 +67,13 @@ let
|
|||
];
|
||||
}).config;
|
||||
|
||||
# `hive` with the hive-controller tier on (hive-c0re, the agent containers,
|
||||
# `deploy.hive-controller.*`). Only a fixture whose claim reads that tier
|
||||
# takes this; every other claim is about the swarm services and evaluates
|
||||
# without a hive on the host.
|
||||
hiveWithController =
|
||||
extra: hive (lib.recursiveUpdate { deploy.hive-controller.enable = true; } extra);
|
||||
|
||||
# The other half of the tree. `nix/agent-modules/` is evaluated by nothing
|
||||
# else in this suite — every fixture above is a host — so a rendered
|
||||
# container config was only ever read by a real deploy. Same entry point
|
||||
|
|
@ -206,6 +212,7 @@ let
|
|||
in
|
||||
{
|
||||
inherit hive;
|
||||
inherit hiveWithController;
|
||||
inherit agent;
|
||||
inherit agentWith;
|
||||
inherit baoNames;
|
||||
|
|
|
|||
Loading…
Reference in a new issue