Merge pull request #100540 from mauriciopoppe/remove-selinuxoptions

Remove SELinuxOptions double setup in pod spec
This commit is contained in:
Kubernetes Prow Robot 2021-03-24 18:01:28 -07:00 committed by GitHub
commit bcab4c35d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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