From 6bdbb460fcad8c553d00b95801290a8dd600e76e Mon Sep 17 00:00:00 2001 From: pontiyaraja Date: Wed, 28 Nov 2018 12:33:44 +0530 Subject: [PATCH] Removed privileged option for [sig-storage] host path --- test/e2e/common/host_path.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/e2e/common/host_path.go b/test/e2e/common/host_path.go index 2728b6e4c32..fef81301803 100644 --- a/test/e2e/common/host_path.go +++ b/test/e2e/common/host_path.go @@ -49,7 +49,7 @@ var _ = Describe("[sig-storage] HostPath", func() { source := &v1.HostPathVolumeSource{ Path: "/tmp", } - pod := testPodWithHostVol(volumePath, source) + pod := testPodWithHostVol(volumePath, source, false) pod.Spec.Containers[0].Args = []string{ fmt.Sprintf("--fs_type=%v", volumePath), @@ -67,7 +67,7 @@ var _ = Describe("[sig-storage] HostPath", func() { source := &v1.HostPathVolumeSource{ Path: "/tmp", } - pod := testPodWithHostVol(volumePath, source) + pod := testPodWithHostVol(volumePath, source, true) pod.Spec.Containers[0].Args = []string{ fmt.Sprintf("--new_file_0644=%v", filePath), @@ -96,7 +96,7 @@ var _ = Describe("[sig-storage] HostPath", func() { source := &v1.HostPathVolumeSource{ Path: "/tmp", } - pod := testPodWithHostVol(volumePath, source) + pod := testPodWithHostVol(volumePath, source, true) // Write the file in the subPath from container 0 container := &pod.Spec.Containers[0] @@ -135,9 +135,8 @@ func mount(source *v1.HostPathVolumeSource) []v1.Volume { } //TODO: To merge this with the emptyDir tests, we can make source a lambda. -func testPodWithHostVol(path string, source *v1.HostPathVolumeSource) *v1.Pod { +func testPodWithHostVol(path string, source *v1.HostPathVolumeSource, privileged bool) *v1.Pod { podName := "pod-host-path-test" - privileged := true return &v1.Pod{ TypeMeta: metav1.TypeMeta{