Expand description
Runtime diagnostics produced by Kubernetes and CRD schema lookup.
Structs§
- Diagnostic
Sink - Thread-safe sink for
Diagnosticevents keyed byDiagnosticKey. UsesBTreeMapso iteration order is deterministic (driven byDiagnosticKey’sOrd) independent of insertion order. First writer per key wins; canonicalisation at insertion time means payloads for the same key are identical by construction.
Enums§
- Diagnostic
- User-facing diagnostic. Every event helm-schema emits at runtime is
one of these.
Diagnostic::keyproduces the deduplication key. - Diagnostic
Key - Identity key used to dedupe diagnostics. Diagnostics with the same
key are considered “the same logical event”; only the first one
inserted into a
crate::diagnostic::DiagnosticSinkis kept.
Functions§
- format_
diagnostic_ json - Serialize a
Diagnosticto a single-line JSON string. Tagged discriminated union (#[serde(tag = "type")]) keeps the shape stable across versions. ReturnsNoneonly on JSON serialization failure, which should never happen for the variants we own. - format_
diagnostic_ text - Render a
Diagnosticas a human-readable line. Returns"warning: …"for diagnostics representing problems,"info: …"for diagnostics describing successful but noteworthy outcomes.