Skip to main content

validate_helm_values

Function validate_helm_values 

Source
pub fn validate_helm_values(
    contract: &DeploymentContract,
    chart_dir: impl AsRef<Path>,
) -> Result<Vec<ContractMismatch>, DeploymentError>
Available on crate feature deployment only.
Expand description

Validate a Helm chart directory against the deployment contract.

Checks values.yaml for port, prometheus annotations, KEDA thresholds, and the deployment template for health probe paths and env var prefix.

Returns a list of mismatches (empty = all good).

ยงErrors

Returns DeploymentError if chart files cannot be read or parsed.