From 464d4c94de989a9f48f56ec832ce9244f25b11f6 Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Thu, 5 Jan 2023 14:32:14 +0800 Subject: [PATCH] runtime-rs: process single_container Process single_container like pod_sandbox when create container but like pod_container when get the size info of memory/cpu from oci/spec. Fixes: #6006 Signed-off-by: Jianyong Wu --- src/runtime-rs/crates/shim/src/shim_start.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime-rs/crates/shim/src/shim_start.rs b/src/runtime-rs/crates/shim/src/shim_start.rs index 0759891710a5..67fa8c5be873 100644 --- a/src/runtime-rs/crates/shim/src/shim_start.rs +++ b/src/runtime-rs/crates/shim/src/shim_start.rs @@ -38,7 +38,7 @@ impl ShimExecutor { let (container_type, id) = k8s::container_type_with_id(&spec); match container_type { - ContainerType::PodSandbox => { + ContainerType::PodSandbox | ContainerType::SingleContainer => { let address = self.socket_address(&self.args.id)?; let socket = new_listener(&address)?; let child_pid = self.create_shim_process(socket)?;