containerd/pkg/server
Jose Carlos Venegas Munoz b383b0261a Annotations: Provide container metadata for VM based runtimes
For hypervisor-based container runtimes (like Kata Containers, Clear Containers
or runv) a pod will be created in a VM and then create containers within the VM.

When a runtime is requested for container commands like create and start, both
the instal "pause" container and next containers need to be added to the pod
namespace (same VM).

A runtime does not know if it needs to create/start a VM or if it needs to add a
container to an already running VM pod.

This patch adds a way to provide this information through container annotations.
When starting a container or a sandbox, 2 annotations are added:

- type (Container or Sandbox)
- sandbox name

This allow to a VM based runtime to decide if they need to create a pod VM or
container within the VM pod.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2018-01-17 09:57:20 -06:00
..
io Use new cio package. 2018-01-12 22:35:24 +00:00
testing Use new ocicni. 2017-09-07 00:14:12 +00:00
container_attach.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_create_test.go Annotations: Provide container metadata for VM based runtimes 2018-01-17 09:57:20 -06:00
container_create.go Annotations: Provide container metadata for VM based runtimes 2018-01-17 09:57:20 -06:00
container_exec.go add truncindex 2017-10-12 10:32:20 +08:00
container_execsync.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_list_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_list.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_remove_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_remove.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_start.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_stats_list.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_stats.go remove taskService and imageStoreService 2017-12-12 16:51:22 +08:00
container_status_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_status.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_stop_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_stop.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
container_update_resources_test.go Fix update container resources 2017-10-03 06:03:39 +00:00
container_update_resources.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
events.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
helpers_selinux_test.go Use t.Run() instead of t.Log() for subtest log 2018-01-09 15:45:13 -05:00
helpers_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
helpers.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_list_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_list.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_load.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_pull_test.go Containerd client integration 2017-08-16 14:43:22 -07:00
image_pull.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_remove.go cleanup some comment for removeImage 2017-12-13 10:07:52 +08:00
image_status_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
image_status.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
imagefs_info_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
imagefs_info.go Add ImageFsInfo support 2017-09-25 21:02:29 +00:00
instrumented_service.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
restart.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_list_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_list.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_portforward.go add truncindex 2017-10-12 10:32:20 +08:00
sandbox_remove.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_run_test.go Annotations: Provide container metadata for VM based runtimes 2018-01-17 09:57:20 -06:00
sandbox_run.go Annotations: Provide container metadata for VM based runtimes 2018-01-17 09:57:20 -06:00
sandbox_status_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_status.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
sandbox_stop.go Add restart recovery logic. 2017-09-21 17:59:46 +00:00
service_test.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
service.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
snapshots.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00
status.go "Status" function return cri-containerd config in json format 2017-11-03 09:23:05 +08:00
streaming.go Add container attach support. 2017-08-23 23:48:31 +00:00
update_runtime_config.go Update CRI to d779e9c9561b732adf06263c5424889e7564fdbd. 2017-06-21 01:56:13 +00:00
version.go Rename kubernetes-incubator/cri-containerd to containerd/cri-containerd. 2018-01-10 22:35:33 +00:00