full-setup and the host swarmctl reach the controller as a pod, not through a host socket
This commit is contained in:
parent
df4058d2f7
commit
ee6b5f69f6
1 changed files with 222 additions and 157 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue