Skip to main content

Module workload

Module workload 

Source
Expand description

Deployment, Service and content-addressed config Secret builders. Kubernetes workload builders for an independent Kanidm RADIUS endpoint.

Pure construction only: reconciliation must verify parent UID ownership, validate referenced inputs, and preserve last-good credentials before apply. This does not mint Kanidm tokens or adopt existing Kubernetes objects.

Structs§

RadiusWorkload

Enums§

RadiusCaSource
RadiusServiceExposure
RadiusWorkloadError

Constants§

CONFIG_HASH_LEN
Hex characters of the config digest used in the config Secret name.
MAX_RADIUS_NAME_LEN
Longest CR name that keeps <name>-<hash> a valid 63-character DNS label.
PRE_STOP_SLEEP_SECONDS
Seconds a terminating pod keeps serving before radiusd gets SIGTERM. kube-proxy removes a pod from the Service a moment after it starts terminating; UDP requests sent in between would be silently lost, which a rollout with maxUnavailable: 0 must not cause.

Functions§

build_config_secret
Build the immutable, content-addressed config Secret.
build_workload
Derive the entire desired workload from the CR, the immutable config Secret and the token id it was rendered with. Never derive owner identity from the reusable resource name.
config_secret_name
Name of the immutable config Secret: <cr>-<first 10 hex of sha256(toml)>.