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

Function sandbox_labels

crates/openshell-driver-kubernetes/src/driver.rs:857–865  ·  view source on GitHub ↗
(sandbox: &Sandbox)

Source from the content-addressed store, hash-verified

855}
856
857fn sandbox_labels(sandbox: &Sandbox) -> BTreeMap<String, String> {
858 let mut labels = BTreeMap::new();
859 labels.insert(LABEL_SANDBOX_ID.to_string(), sandbox.id.clone());
860 labels.insert(
861 LABEL_MANAGED_BY.to_string(),
862 LABEL_MANAGED_BY_VALUE.to_string(),
863 );
864 labels
865}
866
867fn sandbox_id_from_object(obj: &DynamicObject) -> Result<String, String> {
868 if let Some(labels) = obj.metadata.labels.as_ref()

Callers 1

create_sandboxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected