Watch
0
0
Fork
You've already forked hyperhive
0

full-setup and the host swarmctl reach the controller as a pod, not through a host socket

This commit is contained in:
atlas 2026-11-26 09:22:29 +01:00 • committed by maia
commit 64d340e385

View file

@ -154,13 +154,14 @@ let
or null == "https://matrix.hive.t.local";
}
{
# The host's swarmctl reaches the gateway by default and the socket only when
# the operator empties `SWARMCTL_SWARM`: `--set-default` lets that empty value
# through, `--set` would not. The socket variable is the control that the
# wrapper text was found at all.
name = "the host's swarmctl defaults to its own swarm's gateway, and an operator's own value wins";
# The host's swarmctl reaches the gateway by default and sets no controller socket: the
# controller is a pod, so the host has none. `--set-default` lets an operator's own value
# through, `--set` would not. The trust variable is the control that the wrapper text was
# found at all.
name = "the host's swarmctl defaults to its own swarm's gateway with no controller socket, and an operator's own value wins";
ok =
lib.hasInfix "--set SWARM_CONTROLLER_SOCKET " swarmctlWrapperCmd
lib.hasInfix "--set SSL_CERT_FILE " swarmctlWrapperCmd
&& !(lib.hasInfix "SWARM_CONTROLLER_SOCKET" swarmctlWrapperCmd)
&& lib.hasInfix "--set-default SWARMCTL_SWARM https://t.local" swarmctlWrapperCmd
&& lib.hasInfix "--set-default SWARMCTL_LOGIN_DEFAULT_SWARM https://t.local" swarmctlWrapperCmd
&& !(lib.hasInfix "--set SWARMCTL_SWARM" swarmctlWrapperCmd);