pub fn validate_cpu(cpu: &f64) -> Result<(), ValidationError>
Validate CPU limit
Requirements:
Returns a validation error if CPU is <= 0.