Namespace "local" volume mounts by ContainerManifest ID on disk

Local volume mounts in a pod should result in host mounted directories
which are namespaced by the ContainerManifest ID.
This commit is contained in:
Dan Mace
2014-07-09 14:39:03 -04:00
parent 9408bd77ec
commit 00df67b0bf
2 changed files with 5 additions and 5 deletions

View File

@@ -505,10 +505,10 @@ func TestMakeVolumesAndBinds(t *testing.T) {
},
},
}
volumes, binds := makeVolumesAndBinds(&container)
volumes, binds := makeVolumesAndBinds("pod", &container)
expectedVolumes := []string{"/mnt/path", "/mnt/path2"}
expectedBinds := []string{"/exports/disk:/mnt/path", "/exports/disk2:/mnt/path2:ro", "/mnt/path3:/mnt/path3"}
expectedBinds := []string{"/exports/pod/disk:/mnt/path", "/exports/pod/disk2:/mnt/path2:ro", "/mnt/path3:/mnt/path3"}
if len(volumes) != len(expectedVolumes) {
t.Errorf("Unexpected volumes. Expected %#v got %#v. Container was: %#v", expectedVolumes, volumes, container)
}