remove selinuxoptions because it's configured before

This commit is contained in:
Mauricio Poppe 2021-03-24 18:58:54 +00:00
parent 54449be031
commit d9c4d8bff8

View File

@ -249,9 +249,6 @@ func MakePodSpec(podConfig *Config) *v1.PodSpec {
podSpec.Containers[0].VolumeMounts = volumeMounts
podSpec.Containers[0].VolumeDevices = volumeDevices
podSpec.Volumes = volumes
if runtime.GOOS != "windows" {
podSpec.SecurityContext.SELinuxOptions = podConfig.SeLinuxLabel
}
SetNodeSelection(podSpec, podConfig.NodeSelection)
return podSpec