nix: run swarm-ui wherever swarm-controller runs
Remove deploy.swarm-ui.enable. Every reader (the swarm-ui vhost, the authelia operator rule for the swarm apex, hive-network's anyServiceEnabled) now reads deploy.swarm-controller.enable, and the controller's webhook public URL is gated on the swarm domain alone, since the vhost it names exists wherever the daemon does. Both spellings of the old switch (deploy.swarm-ui.enable and the already-renamed swarm.ui.enable) become mkRemovedOptionModule entries, so a host that still sets either fails evaluation with a message naming the controller toggle instead of silently changing. Ruling (mara, #3742): "swarm-ui always runs wherever controller runs". Part of #3742
This commit is contained in:
parent
70c13aee7a
commit
f9954b91b4
10 changed files with 83 additions and 59 deletions
|
|
@ -631,11 +631,11 @@ let
|
|||
ok = !(bare.containers ? swarm-otel) && !(centralToggleOff.containers ? swarm-otel);
|
||||
}
|
||||
{
|
||||
# `deploy.swarm-ui.enable`, which defaults to the controller's toggle —
|
||||
# derived from a sibling deployment decision, still not from the hive
|
||||
# toggle. `t.local` is the fixtures' swarm domain, which is the apex the
|
||||
# UI claims; the arm below is what proves this vhost renders at all.
|
||||
name = "the swarm UI vhost is absent unless this host is told to serve it";
|
||||
# The swarm UI follows `deploy.swarm-controller.enable` — a sibling
|
||||
# deployment decision, not the hive toggle. `t.local` is the fixtures'
|
||||
# swarm domain, which is the apex the UI claims; the arm below is what
|
||||
# proves this vhost renders at all.
|
||||
name = "the swarm UI vhost is absent unless this host runs the swarm controller";
|
||||
ok =
|
||||
!(bare.services.nginx.virtualHosts ? "t.local")
|
||||
&& !(centralToggleOff.services.nginx.virtualHosts ? "t.local");
|
||||
|
|
|
|||
Loading…
Reference in a new issue