mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user