From cbb620678d06bc384c81d87c176b973be9909031 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Thu, 30 Jun 2016 12:42:58 -0400 Subject: [PATCH] Fix selinux issue with following node e2e test: [Fail] [k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api /root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:158 --- test/e2e_node/kubelet_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e_node/kubelet_test.go b/test/e2e_node/kubelet_test.go index 89c89907aa7..c98c51d6300 100644 --- a/test/e2e_node/kubelet_test.go +++ b/test/e2e_node/kubelet_test.go @@ -178,6 +178,11 @@ func createSummaryTestPods(f *framework.Framework, podNamePrefix string, count i }, }, }, + SecurityContext: &api.PodSecurityContext{ + SELinuxOptions: &api.SELinuxOptions{ + Level: "s0", + }, + }, Volumes: []api.Volume{ // TODO: Test secret volumes // TODO: Test hostpath volumes