func dropDisabledRunAsGroupField(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.RunAsGroup) && !runAsGroupInUse(oldPodSpec) {
		if podSpec.SecurityContext != nil {
			podSpec.SecurityContext.RunAsGroup = nil
		}
		VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
			if c.SecurityContext != nil {
				c.SecurityContext.RunAsGroup = nil
			}
			return true
		})
	}
}
// dropDisabledRunAsGroupField removes disabled fields from PodSpec related
// to RunAsGroup
dropDisabledRunAsGroupField removes disabled fields from PodSpec related
to RunAsGroup
// dropDisabledRunAsGroupField removes disabled fields from PodSpec related // to RunAsGroup
func dropDisabledRunAsGroupField(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.RunAsGroup) && !runAsGroupInUse(oldPodSpec) {
		if podSpec.SecurityContext != nil {
			podSpec.SecurityContext.RunAsGroup = nil
		}
		VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
			if c.SecurityContext != nil {
				c.SecurityContext.RunAsGroup = nil
			}
			return true
		})
	}
}
func dropDisabledRunAsGroupField ( podSpec , oldPodSpec * api . PodSpec ) { if ! utilfeature . DefaultFeatureGate . Enabled ( features . RunAsGroup ) && ! runAsGroupInUse ( oldPodSpec ) { if podSpec . SecurityContext != nil { podSpec . SecurityContext . RunAsGroup = nil } VisitContainers ( podSpec , AllContainers , func ( c * api . Container , containerType ContainerType ) bool { if c . SecurityContext != nil { c . SecurityContext . RunAsGroup = nil } return true } ) } }
dropDisabledRunAsGroupField removes disabled fields from PodSpec related
to RunAsGroup
dropDisabledRunAsGroupField removes disabled fields from PodSpec related to RunAsGroup