Expand description
Shared semantic contracts used by Helm analysis and schema providers.
Modules§
- guard_
algebra - Normalization helpers for conjunction and disjunction guard sets.
Structs§
- Conditional
Overlay Evidence - Branch-local evidence for one conditional schema overlay.
- Conditional
Path Overlay - Conditionally-scoped values path whose schema can be lowered under a values-decidable guard set.
- Contract
Fail Implication - One
fail-branch implication on a values path. - Contract
Path Schema Evidence - All schema-lowering evidence for one values path.
- Contract
Provenance - Source provenance for one emitted contract fact.
- Contract
Requiredness Evidence - Path-local evidence consumed by the optional
--infer-requiredpost-pass. - Contract
Schema Signals - Contract-derived facts consumed by core values-schema generation.
- Contract
Use - A contract claim for one observed values path.
- Contract
Value Path Facts - Schema-generation facts for one input values path.
- Guard
Dnf - Disjunction of conjunctions of typed predicates.
- Helper
Branch - One branch of an if/elif/else chain in a helper or manifest header.
- Kind
Branch - One arm of a values-predicate-selected
kind:chain (kind: {{ if $stateful }}StatefulSet{{ else }}Deployment{{ end }}). - Merge
Layers Use - The value is one layer of an ordered Sprig
merge: a key of an earlier layer shadows the same key of every later layer at the rendered sink, so a later layer’s member reaches the sink only where every earlier layer lacks that member. - Provider
Schema Fragment - Schema fragment returned by a provider for one resource/path lookup.
- Provider
Schema Source - Provider document location that produced a schema fragment.
- Provider
Schema Use - Contract fact that needs a Kubernetes resource schema lookup.
- Provider
Source Fragment - Provider-owned source leaf.
- Resource
Ref - Detected Kubernetes resource type (apiVersion + kind).
- Source
Span - Byte span within a template source file.
- Split
Segment Use - The rendered text is ONE SEGMENT of the source string split by a literal
separator (
regexSplit ":" . -1 | lastextracting a port suffix): the sink schema constrains that segment, never the whole raw value. - Values
Default Source - A chart-wide default subtree merged into an effective
.Valuessubtree. - Values
Program Wrapper - A chart-authored values-program wrapper convention: within
scope_path(empty for the whole values tree), any node may be a singleton{key: PROGRAM}map that the chart’s engine replaces with thetpl-rendered, YAML-reparsed program result before consumers read it. - Yaml
Path - YAML path in the rendered manifest, e.g.
["metadata", "name"].
Enums§
- ApiPresence
Query - A typed
.Capabilities.APIVersions.Has ...query. - Capability
Guard - Structurally-decoded capability guard for an
ifaction. - Conditional
Guard - Values-decidable guard expression that can be lowered into JSON Schema conditionals.
- Contract
Requirement Target - Runtime value within a values-path contract that must satisfy a requirement.
- Fail
Value Requirement - One requirement a
failbranch imposes on an affected value. - Guard
- A guard condition from an
if,with, orrangeblock. - Guard
Value - Scalar literal used by values-decidable guard comparisons.
- Helper
Branch Body - What a
HelperBranchproduces when its guard is live. - Metadata
Field Kind - Kubernetes
metadata.*field shape referenced by a values path. - Predicate
- Typed Boolean formula recovered from template control flow.
- Provider
Origin - Identifies which provider produced a lookup result.
- Quoted
Scalar Style - The quoting style of a manually quoted YAML scalar hosting a raw splice.
- Value
Kind - How a value contributes to rendered YAML.
Constants§
- DYNAMIC_
MAPPING_ VALUE_ SEGMENT - Structural path segment for the value of a rendered mapping entry whose key is supplied by a template expression.
Traits§
- Capability
Oracle - Authoritative answer to a parsed
.Capabilities.APIVersions.Hasquery for a specific Kubernetes version. - Resource
Schema Oracle - Provides JSON Schema fragments for Kubernetes resource fields.
Functions§
- append_
relative_ path - Appends a rendered YAML path relative to a base path.
- append_
value_ path - Appends one structural segment to an encoded
.Valuespath. - dynamic_
mapping_ value_ path - Appends the structural dynamic-key value segment to a rendered YAML path.
- join_
value_ path - Joins structural
.Valuespath segments into the contract path currency. - live_
literals - Resolve a typed-branch chain to the literal alternatives the chart would emit at runtime for the target K8s version. If a non-empty branch is not statically decidable, return no chosen branch so callers preserve all candidates instead of collapsing ambiguity to source order.
- normalize_
schema_ pattern_ dialects - Normalize regex dialects in every schema-position
patternkeyword andpatternPropertieskey. Provider schemas carry Go/RE2 spellings — notably a leading global(?i)— that Draft-07’s ECMA-262 dialect rejects; conforming validators refuse the whole schema over one such pattern. Runs once at provider-fragment ingestion, the boundary where foreign dialect text enters the system, so every downstream consumer sees portable spellings. Rewrites are language-exact (a case fold, never a widening), so an untranslatable pattern stays as-is for the fixture hygiene gate to report rather than silently changing what the schema accepts. - sequence_
item_ path - Marks the final path segment as a sequence-item collection slot.
- split_
value_ path - Splits the contract
.Valuespath currency into structural segments. - values_
path_ has_ descendant - Reports whether
sourcescontains a strict descendant ofpath. - values_
path_ is_ descendant - Reports whether
pathis a strict segmented descendant ofancestor.