Skip to main content

validate_resources

Function validate_resources 

Source
pub fn validate_resources(
    resources: &ResourceRequirements,
    context: &str,
) -> ValidationResult
Expand description

Validate that a ResourceRequirements has no requests > limits for any key. A pod with requests > limits is rejected by the API server, so the mover Job never creates a pod and the run hangs — the same silent-wedge class as an impossible securityContext. context names the owner (e.g. "SnapshotPolicy mover").