module-eval: the forge no longer shares the host netns
Two service containers share it now, bao and the queue; fourteen have a netns of their own.
This commit is contained in:
parent
fc70f538ac
commit
6e2abcb0a5
1 changed files with 3 additions and 3 deletions
|
|
@ -843,14 +843,14 @@ let
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# Both values come from ../container-modules/swarm-container.nix.
|
# Both values come from ../container-modules/swarm-container.nix.
|
||||||
# Three of the 16 service containers share the host netns (hive-forge, bao,
|
# Two of the 16 service containers share the host netns (bao, the queue)
|
||||||
# the queue) and thirteen have one of their own.
|
# and fourteen have one of their own.
|
||||||
name = "a service container on the host netns runs no firewall or resolvconf of its own";
|
name = "a service container on the host netns runs no firewall or resolvconf of its own";
|
||||||
ok =
|
ok =
|
||||||
let
|
let
|
||||||
shared = lib.filter (c: !c.privateNetwork) (lib.attrValues serviceContainers);
|
shared = lib.filter (c: !c.privateNetwork) (lib.attrValues serviceContainers);
|
||||||
in
|
in
|
||||||
lib.length shared == 3
|
lib.length shared == 2
|
||||||
&& lib.all (
|
&& lib.all (
|
||||||
c: !c.config.networking.firewall.enable && !c.config.networking.resolvconf.enable
|
c: !c.config.networking.firewall.enable && !c.config.networking.resolvconf.enable
|
||||||
) shared;
|
) shared;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue