Expand description
Instance identity from the Kubernetes downward API (RFC 0015 §6, RFC 0014 §6.4).
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 if
unset, RFC 0011 §6).
Structs§
- Identity
- The instance’s correlation identity.
run_idis always present; the k8s fields are populated from the downward-API env when injected, elseNone.