mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
remove selinuxoptions because it's configured before
This commit is contained in:
parent
54449be031
commit
d9c4d8bff8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user