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
|
|
@ -18,6 +18,7 @@ let
|
|||
;
|
||||
})
|
||||
hive
|
||||
hiveWithController
|
||||
runGroup
|
||||
bridgePortsOrNone
|
||||
swarmServiceEnables
|
||||
|
|
@ -90,7 +91,7 @@ let
|
|||
# The swarm's shared services hosted HERE without the all-local mode — a
|
||||
# services box with hives elsewhere, the shape ./host-modules/
|
||||
# swarm-required-services.nix documents the switch for.
|
||||
swarmServicesHere = hive { deploy.allSwarmServices = true; };
|
||||
swarmServicesHere = hiveWithController { deploy.allSwarmServices = true; };
|
||||
|
||||
# Same, with one of those services placed on another host. Every derivation
|
||||
# in that module is `mkDefault` so this stays expressible.
|
||||
|
|
@ -105,7 +106,7 @@ let
|
|||
upstream = "https://example.invalid/tool";
|
||||
dest = "mirrors/tool";
|
||||
};
|
||||
controllerWithMirrors = hive {
|
||||
controllerWithMirrors = hiveWithController {
|
||||
deploy.swarm-controller.enable = true;
|
||||
deploy.forgejo.enable = true;
|
||||
deploy.forgejo.mirrors = [ aMirror ];
|
||||
|
|
@ -428,7 +429,7 @@ let
|
|||
# which is what keeps "asserted by whoever needs it" from being a
|
||||
# setting the operator cannot turn off.
|
||||
name = "an explicit gateway.enable = false wins over the modules asserting it";
|
||||
ok = !(hive { gateway.enable = false; }).services.nginx.enable;
|
||||
ok = !(hiveWithController { gateway.enable = false; }).services.nginx.enable;
|
||||
}
|
||||
{
|
||||
name = "declared forge mirrors reach the swarm-controller, not hive-c0re";
|
||||
|
|
|
|||
Loading…
Reference in a new issue