Skip to main content

Module identity

Module identity 

Source
Expand description

Instance identity from the Kubernetes downward API.

agentd surfaces pod identity by reading operator-injected environment variables (set from valueFrom.fieldRef) — never by calling the kube API. There is no kube client, no in-cluster config, no service-account read; that coupling belongs in agentctl, not here (the minimalism moat). Env in, identity out.

Every k8s field is optional and descriptive, never load-bearing: outside Kubernetes the vars are simply unset and the fields are None. Their absence is never a config error. run_id is always present (minted by config when unset), because every log line and durable record correlates on it.

Structs§

Identity
The instance’s correlation identity. run_id is always present; the k8s fields are populated from the downward-API env when injected, else None.