From 21482ad1a861148ae994e0b12e6ecf82da97f4be Mon Sep 17 00:00:00 2001 From: Naadir Jeewa Date: Thu, 1 Feb 2018 07:15:13 +0000 Subject: Set default configuration container type annotation to sandbox This allows podman to provide sufficient hints to start containers with Intel Clear Containers: https://github.com/clearcontainers/runtime/blob/master/docs/architecture/architecture.md#oci-annotations Signed-off-by: Naadir Jeewa --- cmd/podman/spec_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/podman/spec_test.go') diff --git a/cmd/podman/spec_test.go b/cmd/podman/spec_test.go index 586c09656..768b079aa 100644 --- a/cmd/podman/spec_test.go +++ b/cmd/podman/spec_test.go @@ -23,6 +23,12 @@ func TestCreateConfig_GetVolumeMounts(t *testing.T) { assert.True(t, reflect.DeepEqual(data, specMount[0])) } +func TestCreateConfig_GetAnnotations(t *testing.T) { + config := createConfig{} + annotations := config.GetAnnotations() + assert.True(t, reflect.DeepEqual("sandbox", annotations["io.kubernetes.cri-o.ContainerType"])) +} + func TestCreateConfig_GetTmpfsMounts(t *testing.T) { data := spec.Mount{ Destination: "/homer", -- cgit v1.2.3-54-g00ecf