pub fn from_yaml_str(yaml: &str) -> Result<DeploymentSpec, SpecError>
Parse a deployment spec from YAML string
Returns SpecError if parsing or validation fails.
SpecError