Fix selinux issue with the following node e2e test:

[Fail] [k8s.io] Container Runtime Conformance Test container runtime conformance blackbox test when starting a container that exits [It] it should run with the expected status [Conformance]
/root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:114
This commit is contained in:
Avesh Agarwal
2016-06-23 15:31:28 -04:00
committed by Avesh Agarwal
parent 61a9358dbd
commit ba85ce449a
2 changed files with 10 additions and 10 deletions

View File

@@ -34,7 +34,8 @@ type ConformanceContainer struct {
Volumes []api.Volume
ImagePullSecrets []string
podName string
podName string
PodSecurityContext *api.PodSecurityContext
}
func (cc *ConformanceContainer) Create() {
@@ -52,6 +53,7 @@ func (cc *ConformanceContainer) Create() {
Containers: []api.Container{
cc.Container,
},
SecurityContext: cc.PodSecurityContext,
Volumes: cc.Volumes,
ImagePullSecrets: imagePullSecrets,
},