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

Function image_pull_secret_refs

crates/openshell-driver-kubernetes/src/driver.rs:1867–1874  ·  view source on GitHub ↗
(secrets: &[String])

Source from the content-addressed store, hash-verified

1865}
1866
1867fn image_pull_secret_refs(secrets: &[String]) -> Vec<serde_json::Value> {
1868 secrets
1869 .iter()
1870 .map(|secret| secret.trim())
1871 .filter(|secret| !secret.is_empty())
1872 .map(|secret| serde_json::json!({ "name": secret }))
1873 .collect()
1874}
1875
1876fn app_armor_profile_to_k8s(profile: &AppArmorProfile) -> serde_json::Value {
1877 let mut value = serde_json::json!({

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected