From 4e3741ac45a3b0d24d0f7db401723d2cc4c95a4c Mon Sep 17 00:00:00 2001 From: Derek Su <derek.su@suse.com> Date: Thu, 13 Jun 2024 23:34:46 +0800 Subject: [PATCH] Revert "Give the helper pod more range of MCS categories" This reverts commit c4dc309a6b28794f9c6fae6cdbbca9411d521847. Signed-off-by: Derek Su <derek.su@suse.com> --- provisioner.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/provisioner.go b/provisioner.go index 9f774cc5..d0b568bc 100644 --- a/provisioner.go +++ b/provisioner.go @@ -674,11 +674,7 @@ 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) -- GitLab