diff --git a/provisioner.go b/provisioner.go index 20548ee8bbeb00826d85fe7f6d52068fb45ae727..b226a2144cf70b7577e077aacbbcf127ec35811f 100644 --- a/provisioner.go +++ b/provisioner.go @@ -567,7 +567,6 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmd []string, if o.Node != "" { helperPod.Spec.NodeName = o.Node } - privileged := true helperPod.Spec.ServiceAccountName = p.serviceAccountName helperPod.Spec.RestartPolicy = v1.RestartPolicyNever helperPod.Spec.Tolerations = append(helperPod.Spec.Tolerations, lpvTolerations...) @@ -578,9 +577,6 @@ 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{ - Privileged: &privileged, - } // 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