Skip to content

Commit

Permalink
runtime-rs: process single_container
Browse files Browse the repository at this point in the history
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: kata-containers#6006
Signed-off-by: Jianyong Wu <[email protected]>
  • Loading branch information
jongwu committed Jan 9, 2023
1 parent 5f9c892 commit 464d4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime-rs/crates/shim/src/shim_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 464d4c9

Please sign in to comment.