Watch
0
0
Fork
You've already forked hyperhive
0

k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster

This commit is contained in:
atlas 2026-11-22 02:52:20 +01:00 • committed by mara
commit 6512aaa3e9

View file

@ -1,7 +1,7 @@
# Which of a service's two homes runs it: its host unit, or its objects in the
# cluster. A service with a `runtime` option (`swarm-notify-router`) is on the
# cluster when the option says `"k8s"`, and then only: its host unit is gone
# from the configuration, and its manifests are in `services.k3s.manifests`.
# cluster. A service with a `runtime` option is on the cluster when the option
# says `"k8s"`, and then only: its host unit or units are gone from the
# configuration, and its manifests are in `services.k3s.manifests`.
# The cluster does not remove what a manifest created once the manifest is
# gone, so a service back on the host has its objects deleted before its host
# unit starts. docs/4-implementation/k8s/runtime.md has the design.
@ -91,8 +91,8 @@ in
};
})
# A service back on the host first loses its objects. The unit that
# starts the host copy requires this one, so the pod is gone before the
# A service back on the host first loses its objects. The units that
# start the host copy require this one, so the pod is gone before the
# host copy starts, and a failure here leaves the host copy stopped.
#
# Its marker is the manifest's link in the cluster's manifests
@ -107,8 +107,8 @@ in
lib.nameValuePair "${name}-k8s-prune" {
description = "delete ${name}'s objects from the cluster before its host unit starts";
after = [ "k3s.service" ];
before = [ s.hostUnit ];
requiredBy = [ s.hostUnit ];
before = lib.toList s.hostUnit;
requiredBy = lib.toList s.hostUnit;
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;