checkerd

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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

func Health

func Health()

Health is the command of the kubelet's exec probes: "checker-health live" or "checker-health ready". It exits 0 when the checker's file is fresh (live) or present (ready).

func Run

func Run()

Run starts the checker.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL