Expand description
Shape validators for WorkloadSpec.
Called by clients (desktop, agent, CLI) before sending a spec over RPC.
Sync, no I/O. Returns Ok(warnings) on pass or Err(ShapeError) on the
first hard constraint violation.
Layers: shape (this file, no I/O) → semantic (yubaba-side, R090-F3) → environment (deploy-time, R090-F4).
Structs§
- Context
Error - Transient error from a
ValidationContextlookup. - Shape
Warning - A soft check that passed but may indicate misconfiguration.
Enums§
- Field
Path - Identifies the field that caused a shape error or warning.
- Mesh
Error - Failure surface for
MeshResolverlookups. - Semantic
Error - A semantic constraint violation: the spec references a resource that is not known to the cluster at validation time.
- Shape
Error - A hard constraint violation that makes a spec impossible to deploy.
- Workload
Validation Error - Top-level validation error spanning both shape and semantic layers.
Traits§
- Mesh
Resolver - Resolve
crate::EnvValue::FromMeshreferences to literal env values. - Validation
Context - Read-only view of yubaba state used for semantic validation.
Functions§
- all
- Run shape then semantic validation in the correct order.
- resolve_
env_ from_ mesh - Render every
EnvValue::FromMeshentry inenvto aEnvValue::Literalusingresolver; pass throughLiteralandFromSecretvalues unchanged. - semantic
- Run semantic validation — requires yubaba state via
ValidationContext. - shape
- Run shape validation — sync, no I/O.
- shape_
static_ asset - Shape-validate a
kind = "static-asset"workload.