Skip to main content

all

Function all 

Source
pub fn all(
    spec: &WorkloadSpec,
    ctx: &dyn ValidationContext,
    machine_id: &MachineId,
    batch: &[MeshIdent],
) -> Result<(), WorkloadValidationError>
Expand description

Run shape then semantic validation in the correct order.

Shape always runs first. If shape fails, WorkloadValidationError::Shape is returned and semantic checks are skipped — callers never see a Semantic error for a structurally invalid spec.

machine_id is forwarded to the capacity admission-control check. batch is the set of co-deployed mesh idents for forward-reference resolution; pass &[] for single-spec deployment.