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

Method new_kubernetes

crates/openshell-server/src/compute/mod.rs:373–399  ·  view source on GitHub ↗
(
        config: KubernetesComputeConfig,
        store: Arc<Store>,
        sandbox_index: SandboxIndex,
        sandbox_watch_bus: SandboxWatchBus,
        tracing_log_bus: TracingLogBus,
        s

Source from the content-addressed store, hash-verified

371 }
372
373 pub async fn new_kubernetes(
374 config: KubernetesComputeConfig,
375 store: Arc<Store>,
376 sandbox_index: SandboxIndex,
377 sandbox_watch_bus: SandboxWatchBus,
378 tracing_log_bus: TracingLogBus,
379 supervisor_sessions: Arc<SupervisorSessionRegistry>,
380 ) -> Result<Self, ComputeError> {
381 let driver = KubernetesComputeDriver::new(config)
382 .await
383 .map_err(|err| ComputeError::Message(err.to_string()))?;
384 let driver: SharedComputeDriver = Arc::new(KubernetesDriverService::new(driver));
385 Self::from_driver(
386 ComputeDriverKind::Kubernetes.as_str().to_string(),
387 driver,
388 None,
389 None,
390 None,
391 store,
392 sandbox_index,
393 sandbox_watch_bus,
394 tracing_log_bus,
395 supervisor_sessions,
396 Vec::new(),
397 )
398 .await
399 }
400
401 pub(crate) async fn new_remote_driver(
402 endpoint: AcquiredRemoteDriverEndpoint,

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected