Watch
0
0
Fork
You've already forked hyperhive
0

module-eval: four containers left on the host netns

This commit is contained in:
atlas 2026-10-24 03:36:21 +02:00 • committed by mara
commit 6b1fc4b040

View file

@ -617,12 +617,14 @@ let
}
{
# Both values come from ../container-modules/swarm-container.nix.
# Four of the 14 service containers share the host netns (hive-forge, bao,
# the queue, the log store) and ten have one of their own.
name = "a service container on the host netns runs no firewall or resolvconf of its own";
ok =
let
shared = lib.filter (c: !c.privateNetwork) (lib.attrValues serviceContainers);
in
lib.length shared == 5
lib.length shared == 4
&& lib.all (
c: !c.config.networking.firewall.enable && !c.config.networking.resolvconf.enable
) shared;