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§
Enums§
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: 0must 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)>.