Commit 81a5ff92 authored by Lee Verberne's avatar Lee Verberne

Retain ShareProcessNamespace in pod storage

This field is no longer alpha, so don't drop it with the other alpha fields.
parent 3acade42
...@@ -248,10 +248,6 @@ func DropDisabledAlphaFields(podSpec *api.PodSpec) { ...@@ -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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment