From 81226f6943202206aeb334c0d94ce9c264cb808e Mon Sep 17 00:00:00 2001 From: liucimin Date: Tue, 6 Nov 2018 09:39:34 +0800 Subject: [PATCH] docs: update the architecture doc Update the k8s create sandbox and container code in runtime. Fixes #292 Signed-off-by: Liu Cimin lcmjkson@gmail.com --- architecture.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/architecture.md b/architecture.md index 6b8b8b0c4..a7f3bfa85 100644 --- a/architecture.md +++ b/architecture.md @@ -607,14 +607,19 @@ with a Kubernetes pod: return err } + handleFactory(ctx, runtimeConfig) + + disableOutput := noNeedForOutput(detach, ociSpec.Process.Terminal) + + var process vc.Process switch containerType { case vc.PodSandbox: - process, err = createPod(ociSpec, runtimeConfig, containerID, bundlePath, console, disableOutput) + process, err = createSandbox(ctx, ociSpec, runtimeConfig, containerID, bundlePath, console, disableOutput, systemdCgroup) if err != nil { return err } case vc.PodContainer: - process, err = createContainer(ociSpec, containerID, bundlePath, console, disableOutput) + process, err = createContainer(ctx, ociSpec, containerID, bundlePath, console, disableOutput) if err != nil { return err }