Skip to main content

job_pod_sandbox_config

Function job_pod_sandbox_config 

Source
pub fn job_pod_sandbox_config(
    job_name: &str,
    runs_on_label: &str,
    resources: &JobResources,
) -> PodSandboxConfig
Expand description

Build the PodSandboxConfig a job’s resources: hints + runs_on label translate to for admission (#525 P2): cpu/memory become linux.resources, gpu becomes the ANN_GPU_REQUEST annotation (the same vocabulary runtime::admission::derive_demand already reads), and the runs_on label becomes the ANN_GROUP annotation — a B′ group selector, validated against the verified Subject’s membership by the pool’s GroupSelectorValidator at admission (see module docs).