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:
Lee Verberne 2018-07-24 15:51:58 +02:00
parent 3acade424f
commit 81a5ff92df

View File

@ -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 {
DropDisabledVolumeMountsAlphaFields(podSpec.Containers[i].VolumeMounts)
}