From 6d52ebdd13ad052bbf8bfa9efa4e45cafbce1fc2 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Sun, 3 Jun 2018 14:05:54 -0400 Subject: Add flag to add annotations to a container Also add annotations from the image the container was created from. Signed-off-by: Matthew Heon Closes: #886 Approved by: rhatdan --- pkg/spec/spec_test.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pkg/spec/spec_test.go') diff --git a/pkg/spec/spec_test.go b/pkg/spec/spec_test.go index 2a040a9a0..de3605068 100644 --- a/pkg/spec/spec_test.go +++ b/pkg/spec/spec_test.go @@ -23,12 +23,6 @@ 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