Merge pull request #6379 from pmorie/rootcontext

Skeletal security context to facilitate tmpfs mount
This commit is contained in:
Tim Hockin
2015-04-13 12:01:11 -07:00
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--",
})
})
})