Watch
0
0
Fork
You've already forked hyperhive
0

the responders drop the unix-socket listener nothing uses since WP4/WP5

swarm-logs-auth and swarm-metrics-auth serve the TCP address --listen names and nothing else. Every unit of theirs runs as a pod, and the VM test that ran them on a socket takes --listen.
This commit is contained in:
atlas 2026-11-27 09:26:29 +01:00 • committed by maia
commit ba0df0ec82

View file

@ -56,7 +56,6 @@ let
args ? [ ],
env ? [ ],
restartPolicy ? "Always",
socketDir ? false,
}:
{
apiVersion = "v1";
@ -77,20 +76,8 @@ let
// lib.optionalAttrs (restartPolicy == "Always") {
readinessProbe = probe "/readyz";
}
// lib.optionalAttrs socketDir {
volumeMounts = [
{
name = "sock";
mountPath = "/sock";
}
];
}
)
];
volumes = lib.optional socketDir {
name = "sock";
emptyDir = { };
};
};
};
@ -98,22 +85,20 @@ let
swarm-logs-auth = mkPod {
name = "swarm-logs-auth";
args = [
"--socket=/sock/s.sock"
"--listen=0.0.0.0:8081"
"--surface=logs"
"--health-addr=0.0.0.0:${toString healthPort}"
];
env = storeEnv;
socketDir = true;
};
swarm-metrics-auth = mkPod {
name = "swarm-metrics-auth";
args = [
"--socket=/sock/s.sock"
"--listen=0.0.0.0:8081"
"--store-path=swarm/stub"
"--health-addr=0.0.0.0:${toString healthPort}"
];
env = storeEnv;
socketDir = true;
};
swarm-notify-router = mkPod {
name = "swarm-notify-router";