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

Method default

crates/openshell-driver-kubernetes/src/driver.rs:1392–1417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1390
1391impl Default for SandboxPodParams<'_> {
1392 fn default() -> Self {
1393 Self {
1394 default_image: "",
1395 image_pull_policy: "",
1396 image_pull_secrets: &[],
1397 supervisor_image: "",
1398 supervisor_image_pull_policy: "",
1399 supervisor_sideload_method: SupervisorSideloadMethod::default(),
1400 service_account_name: DEFAULT_SANDBOX_SERVICE_ACCOUNT_NAME,
1401 sandbox_id: "",
1402 sandbox_name: "",
1403 grpc_endpoint: "",
1404 ssh_socket_path: "",
1405 client_tls_secret_name: "",
1406 host_gateway_ip: "",
1407 enable_user_namespaces: false,
1408 app_armor_profile: None,
1409 workspace_default_storage_size: DEFAULT_WORKSPACE_STORAGE_SIZE,
1410 default_runtime_class_name: "",
1411 sa_token_ttl_secs: 3600,
1412 provider_spiffe_enabled: false,
1413 provider_spiffe_workload_api_socket_path: "",
1414 sandbox_uid: DEFAULT_SANDBOX_UID,
1415 sandbox_gid: DEFAULT_SANDBOX_UID,
1416 }
1417 }
1418}
1419
1420fn spec_pod_env(spec: Option<&SandboxSpec>) -> std::collections::HashMap<String, String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected