mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
Merge pull request #282 from randomvariable/fix/sandbox
Set default configuration container type annotation to sandbox
This commit is contained in:
@ -439,7 +439,7 @@ func getDefaultAnnotations() map[string]string {
|
||||
annotations[ann.Annotations] = ""
|
||||
annotations[ann.ContainerID] = ""
|
||||
annotations[ann.ContainerName] = ""
|
||||
annotations[ann.ContainerType] = ""
|
||||
annotations[ann.ContainerType] = "sandbox"
|
||||
annotations[ann.Created] = ""
|
||||
annotations[ann.HostName] = ""
|
||||
annotations[ann.IP] = ""
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user