Skip to main content

generate_chart

Function generate_chart 

Source
pub fn generate_chart(
    contract: &DeploymentContract,
    output_dir: impl AsRef<Path>,
    identity: Option<&ContractIdentity>,
) -> Result<(), DeploymentError>
Available on crate feature deployment only.
Expand description

Generate a complete Helm chart directory from the deployment contract.

Writes Chart.yaml, values.yaml, and all template files to output_dir.

identity, when provided, stamps the three io.hyperi.contract.* annotations into Chart.yaml’s top-level annotations: block per the Contract Identity Annotation Scheme v1. Phase 1 rollout: optional; callers SHOULD pass Some(&identity).

§Errors

Returns DeploymentError if files or directories cannot be created.