Documentation
¶
Overview ¶
Package evalresults persists an evaluation unit's full-fidelity result entry (the opaque JSON document the in-pod client emitted) in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap. The bounded summary lives on the EvaluationUnit status; this store carries everything else the submitting client reassembles into its local results file. The ConfigMap is owned by its unit, which is owned by its Evaluation: TTL deletion cascades, so a result is retained exactly as long as the submission it belongs to.
Index ¶
Constants ¶
const DataKey = "entry.json.gz"
DataKey holds the gzipped result entry in the ConfigMap's binaryData.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads a persisted result entry. A missing object or key yields a nil entry and no error: the client treats an absent entry as a unit that produced no result.
func Persist ¶
func Persist(ctx context.Context, c client.Client, namespace string, labels map[string]string, owner client.Object, gvk metav1.TypeMeta, entry []byte) (*v1alpha1.TranscriptRef, error)
Persist writes a unit's result entry and returns the reference to record on the unit's status. An empty entry means no object and a nil reference: a unit that failed before producing a result is not an error here.
The write is idempotent: a re-collected unit overwrites its own results object rather than failing on the one it already wrote.
Types ¶
This section is empty.