mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #100540 from mauriciopoppe/remove-selinuxoptions
Remove SELinuxOptions double setup in pod spec
This commit is contained in:
commit
bcab4c35d2
@ -249,9 +249,6 @@ func MakePodSpec(podConfig *Config) *v1.PodSpec {
|
|||||||
podSpec.Containers[0].VolumeMounts = volumeMounts
|
podSpec.Containers[0].VolumeMounts = volumeMounts
|
||||||
podSpec.Containers[0].VolumeDevices = volumeDevices
|
podSpec.Containers[0].VolumeDevices = volumeDevices
|
||||||
podSpec.Volumes = volumes
|
podSpec.Volumes = volumes
|
||||||
if runtime.GOOS != "windows" {
|
|
||||||
podSpec.SecurityContext.SELinuxOptions = podConfig.SeLinuxLabel
|
|
||||||
}
|
|
||||||
|
|
||||||
SetNodeSelection(podSpec, podConfig.NodeSelection)
|
SetNodeSelection(podSpec, podConfig.NodeSelection)
|
||||||
return podSpec
|
return podSpec
|
||||||
|
Loading…
Reference in New Issue
Block a user