mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
remove selinuxoptions because it's configured before
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user