pub struct ValuesSchemaInput<'a> {
pub contract_schema_signals: &'a ContractSchemaSignals,
pub provider: &'a dyn ResourceSchemaOracle,
pub values_yaml: Option<&'a str>,
pub dependency_values_yaml: Option<&'a str>,
pub values_descriptions: Option<&'a BTreeMap<String, String>>,
}Expand description
Inputs for JSON Schema generation from the current contract schema signals.
The generated schema is derived from the contract-layer signal bundle plus optional structural signals collected by earlier analysis phases. Values-file descriptions are metadata only: they are applied only to schema nodes that already exist from template or values evidence.
Fields§
§contract_schema_signals: &'a ContractSchemaSignalsPath-local static-analysis facts prepared by contract finalization.
provider: &'a dyn ResourceSchemaOracleResource-schema oracle used to constrain rendered Kubernetes fields.
values_yaml: Option<&'a str>Composed chart values defaults, when available.
dependency_values_yaml: Option<&'a str>ONLY the dependency charts’ declared defaults, composed under their value prefixes. A key present here fills at the SUBCHART’s coalesce stage even when the parent-level document misses it — including after a parent-level null-deletion — so absence at such paths reads as the subchart default instead of nil. When absent, every missing key reads as nil.
values_descriptions: Option<&'a BTreeMap<String, String>>Documentation strings keyed by canonical values path.
Implementations§
Source§impl<'a> ValuesSchemaInput<'a>
impl<'a> ValuesSchemaInput<'a>
Sourcepub fn new(
contract_schema_signals: &'a ContractSchemaSignals,
provider: &'a dyn ResourceSchemaOracle,
) -> Self
pub fn new( contract_schema_signals: &'a ContractSchemaSignals, provider: &'a dyn ResourceSchemaOracle, ) -> Self
Creates schema input with contract signals and a resource provider.
Sourcepub fn with_values_yaml(self, values_yaml: Option<&'a str>) -> Self
pub fn with_values_yaml(self, values_yaml: Option<&'a str>) -> Self
Attaches composed chart values defaults.
Sourcepub fn with_dependency_values_yaml(
self,
dependency_values_yaml: Option<&'a str>,
) -> Self
pub fn with_dependency_values_yaml( self, dependency_values_yaml: Option<&'a str>, ) -> Self
Attaches dependency defaults composed beneath subchart prefixes.
Sourcepub fn with_values_descriptions(
self,
values_descriptions: &'a BTreeMap<String, String>,
) -> Self
pub fn with_values_descriptions( self, values_descriptions: &'a BTreeMap<String, String>, ) -> Self
Attaches values-file descriptions as output metadata.
Trait Implementations§
Source§impl<'a> Clone for ValuesSchemaInput<'a>
impl<'a> Clone for ValuesSchemaInput<'a>
Source§fn clone(&self) -> ValuesSchemaInput<'a>
fn clone(&self) -> ValuesSchemaInput<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more