MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / resolve_sandbox_gid

Method resolve_sandbox_gid

crates/openshell-driver-kubernetes/src/config.rs:363–371  ·  view source on GitHub ↗
(
        &self,
        resolved_uid: u32,
        _namespace_annotations: Option<&std::collections::BTreeMap<String, String>>,
    )

Source from the content-addressed store, hash-verified

361 }
362
363 pub fn resolve_sandbox_gid(
364 &self,
365 resolved_uid: u32,
366 _namespace_annotations: Option<&std::collections::BTreeMap<String, String>>,
367 ) -> u32 {
368 self.sandbox_gid
369 .or(self.sandbox_uid)
370 .unwrap_or(resolved_uid)
371 }
372
373 /// Parse `OpenShift` SCC `sa.scc.uid-range` annotation.
374 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected