Documentation
¶
Overview ¶
Package checkerd is the lab checker: a DaemonSet of its own (apart from the node-agent) that runs the checks of the labs whose device pods are on its node and writes the results into the Lab status. It accepts no inbound connection: no listener, no metrics endpoint, no health port; the kubelet's probes run the checker-health command against two files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
NodeName string `env:"NODE_NAME,required"`
PodName string `env:"POD_NAME,required"`
// Namespace is where the keepalive Lease is made (the release namespace).
Namespace string `env:"POD_NAMESPACE,required"`
Version string `env:"CHECKER_VERSION"`
// DeviceSocket is the checker socket of the device access service on this node (in a node directory the two pods share): the only way
// the checker reaches a device. The checker holds no container runtime socket and reads no file of a container from the node.
DeviceSocket string `env:"DEVICE_ACCESS_SOCKET" envDefault:"/run/cib-checker/checker.sock"`
MaxConcurrent int `env:"CHECKER_MAX_CONCURRENT" envDefault:"4"`
// MaxTimeLimitSeconds is the ceiling of the time limit of one run (0: the contract's).
MaxTimeLimitSeconds int `env:"CHECKER_MAX_TIME_LIMIT_SECONDS" envDefault:"0"`
// RunDir holds the two files the probes look at.
RunDir string `env:"CHECKER_RUN_DIR" envDefault:"/run/checker"`
}
Config comes from the environment the chart sets.
Click to show internal directories.
Click to hide internal directories.