mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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:
		@@ -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)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user