From bb18cd475cd1ccc1d77509252d390f9c64b9dfd1 Mon Sep 17 00:00:00 2001 From: "wangyongchao.bj" Date: Tue, 14 Sep 2021 09:56:47 +0800 Subject: [PATCH] virtcontainers: update VC SandboxConfig API add SandboxBindMounts field sync the virtcontainers api.md document, add SandboxBindMounts field to the SandboxConfig API. And update the order of the SandboxConfig API fields. Fixes #2621 Signed-off-by: wangyongchao.bj --- .../documentation/api/1.0/api.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/runtime/virtcontainers/documentation/api/1.0/api.md b/src/runtime/virtcontainers/documentation/api/1.0/api.md index 57faa5ce14..e1666087a8 100644 --- a/src/runtime/virtcontainers/documentation/api/1.0/api.md +++ b/src/runtime/virtcontainers/documentation/api/1.0/api.md @@ -46,6 +46,7 @@ type SandboxConfig struct { Hostname string HypervisorType HypervisorType + HypervisorConfig HypervisorConfig AgentConfig KataAgentConfig @@ -60,6 +61,16 @@ type SandboxConfig struct { // to the Sandbox a posteriori. Containers []ContainerConfig + // SandboxBindMounts - list of paths to mount into guest + SandboxBindMounts []string + + // Experimental features enabled + Experimental []exp.Feature + + // Cgroups specifies specific cgroup settings for the various subsystems that the container is + // placed into to limit the resources the container has available + Cgroups *configs.Cgroup + // Annotations keys must be unique strings and must be name-spaced // with e.g. reverse domain notation (org.clearlinux.key). Annotations map[string]string @@ -76,13 +87,6 @@ type SandboxConfig struct { SandboxCgroupOnly bool DisableGuestSeccomp bool - - // Experimental features enabled - Experimental []exp.Feature - - // Cgroups specifies specific cgroup settings for the various subsystems that the container is - // placed into to limit the resources the container has available - Cgroups *configs.Cgroup } ```