UPSTREAM: revert: 39496: Use privileged containers for host path e2e tests
@@ -132,7 +132,6 @@ func mount(source *api.HostPathVolumeSource) []api.Volume {
//TODO: To merge this with the emptyDir tests, we can make source a lambda.
func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod {
podName := "pod-host-path-test"
- privileged := true
return &api.Pod{
TypeMeta: unversioned.TypeMeta{
@@ -153,9 +152,6 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
MountPath: path,
},
},
- SecurityContext: &api.SecurityContext{
- Privileged: &privileged,
- },
},
{
Name: containerName2,
@@ -166,9 +162,6 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
MountPath: path,
},
},
- SecurityContext: &api.SecurityContext{
- Privileged: &privileged,
- },
},
},
RestartPolicy: api.RestartPolicyNever,
