Skip to content
Snippets Groups Projects
Commit c4dc309a authored by galal-hussein's avatar galal-hussein Committed by Derek Su
Browse files

Give the helper pod more range of MCS categories

parent ab80ed5b
No related branches found
No related tags found
No related merge requests found
......@@ -674,7 +674,11 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmd []string,
"-s", strconv.FormatInt(o.SizeInBytes, 10),
"-m", string(o.Mode),
"-a", string(action)}
helperPod.Spec.Containers[0].SecurityContext = &v1.SecurityContext{
SELinuxOptions: &v1.SELinuxOptions{
Level: "s0-s0:c0.c1023",
},
}
// If it already exists due to some previous errors, the pod will be cleaned up later automatically
// https://github.com/rancher/local-path-provisioner/issues/27
logrus.Infof("create the helper pod %s into %s", helperPod.Name, p.namespace)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment