mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Retain ShareProcessNamespace in pod storage
This field is no longer alpha, so don't drop it with the other alpha fields.
This commit is contained in:
parent
3acade424f
commit
81a5ff92df
@ -248,10 +248,6 @@ func DropDisabledAlphaFields(podSpec *api.PodSpec) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.PodShareProcessNamespace) && podSpec.SecurityContext != nil {
|
|
||||||
podSpec.SecurityContext.ShareProcessNamespace = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
for i := range podSpec.Containers {
|
for i := range podSpec.Containers {
|
||||||
DropDisabledVolumeMountsAlphaFields(podSpec.Containers[i].VolumeMounts)
|
DropDisabledVolumeMountsAlphaFields(podSpec.Containers[i].VolumeMounts)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user