Set rootcontext of emptyDir tmpfs mounts correctly

This commit is contained in:
Paul Morie
2015-04-10 16:56:11 -04:00
parent 1be6847256
commit c98e89fca0
20 changed files with 158 additions and 43 deletions

View File

@@ -83,9 +83,11 @@ var _ = Describe("Secrets", func() {
},
Containers: []api.Container{
{
Name: "catcont",
Image: "gcr.io/google_containers/busybox",
Command: []string{"sh", "-c", "cat /etc/secret-volume/data-1"},
Name: "catcont",
Image: "kubernetes/mounttest:0.1",
Args: []string{
"--file_content=/etc/secret-volume/data-1",
"--file_mode=/etc/secret-volume/data-1"},
VolumeMounts: []api.VolumeMount{
{
Name: volumeName,
@@ -100,7 +102,8 @@ var _ = Describe("Secrets", func() {
}
testContainerOutput("consume secrets", c, pod, []string{
"value-1",
"content of file \"/etc/secret-volume/data-1\": value-1",
"mode of file \"/etc/secret-volume/data-1\": -r--r--r--",
})
})
})