cri-o/server
Samuel Ortiz 60123a77ce server: Export more container metadata for VM containers
VM base container runtimes (e.g. Clear Containers) will run each pod
in a VM and will create containers within that pod VM. Unfortunately
those runtimes will get called by ocid with the same commands
(create and start) for both the pause containers and subsequent
containers to be added to the pod namespace. Unless they work around
that by e.g. infering that a container which rootfs is under
"/pause" would represent a pod, they have no way to decide if they
need to create/start a VM or if they need to add a container to an
already running VM pod.

This patch tries to formalize this difference through pod
annotations. When starting a container or a sandbox, we now add 2
annotations for the container type (Infrastructure or not) and the
sandbox name. This will allow VM based container runtimes to handle
2 things:

- Decide if they need to create a pod VM or not.
- Keep track of which pod ID runs in a given VM, so that they
  know to which sandbox they have to add containers.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2016-11-29 10:24:33 +01:00
..
seccomp add seccomp support 2016-11-28 22:05:34 +01:00
config.go add seccomp support 2016-11-28 22:05:34 +01:00
container.go server: Export more container metadata for VM containers 2016-11-29 10:24:33 +01:00
container_attach.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_create.go server: Export more container metadata for VM containers 2016-11-29 10:24:33 +01:00
container_exec.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_execsync.go execsync: return proper error description 2016-11-24 12:11:04 +01:00
container_list.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_portforward.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_remove.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_start.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_status.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_stop.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_updateruntimeconfig.go server: split containers actions 2016-11-22 18:38:05 +01:00
image_list.go server: split images actions 2016-11-22 23:05:37 +01:00
image_pull.go server: split images actions 2016-11-22 23:05:37 +01:00
image_remove.go server: split images actions 2016-11-22 23:05:37 +01:00
image_status.go server: split images actions 2016-11-22 23:05:37 +01:00
runtime_status.go server: split containers actions 2016-11-22 18:38:05 +01:00
sandbox.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
sandbox_list.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
sandbox_remove.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
sandbox_run.go server: Export more container metadata for VM containers 2016-11-29 10:24:33 +01:00
sandbox_status.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
sandbox_stop.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
server.go add seccomp support 2016-11-28 22:05:34 +01:00
utils.go pass sysctls down to oci runtime 2016-11-24 16:29:37 +08:00
version.go version: Fix parsing for gRPC version 2016-11-15 09:26:11 +01:00