func dropDisabledProcMountField(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) && !procMountInUse(oldPodSpec) {
		defaultProcMount := api.DefaultProcMount
		VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
			if c.SecurityContext != nil && c.SecurityContext.ProcMount != nil {
				// The ProcMount field was improperly forced to non-nil in 1.12.
				// If the feature is disabled, and the existing object is not using any non-default values, and the ProcMount field is present in the incoming object, force to the default value.
				// Note: we cannot force the field to nil when the feature is disabled because it causes a diff against previously persisted data.
				c.SecurityContext.ProcMount = &defaultProcMount
			}
			return true
		})
	}
}
// dropDisabledProcMountField removes disabled fields from PodSpec related
// to ProcMount only if it is not already used by the old spec
dropDisabledProcMountField removes disabled fields from PodSpec related
to ProcMount only if it is not already used by the old spec
// dropDisabledProcMountField removes disabled fields from PodSpec related // to ProcMount only if it is not already used by the old spec
func dropDisabledProcMountField(podSpec, oldPodSpec *api.PodSpec) {
	if !utilfeature.DefaultFeatureGate.Enabled(features.ProcMountType) && !procMountInUse(oldPodSpec) {
		defaultProcMount := api.DefaultProcMount
		VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
			if c.SecurityContext != nil && c.SecurityContext.ProcMount != nil {
				c.SecurityContext.ProcMount = &defaultProcMount
			}
			return true
		})
	}
}
func dropDisabledProcMountField ( podSpec , oldPodSpec * api . PodSpec ) { if ! utilfeature . DefaultFeatureGate . Enabled ( features . ProcMountType ) && ! procMountInUse ( oldPodSpec ) { defaultProcMount := api . DefaultProcMount VisitContainers ( podSpec , AllContainers , func ( c * api . Container , containerType ContainerType ) bool { if c . SecurityContext != nil && c . SecurityContext . ProcMount != nil { c . SecurityContext . ProcMount = & defaultProcMount } return true } ) } }
dropDisabledProcMountField removes disabled fields from PodSpec related
to ProcMount only if it is not already used by the old spec
dropDisabledProcMountField removes disabled fields from PodSpec related to ProcMount only if it is not already used by the old spec
// The ProcMount field was improperly forced to non-nil in 1.12. // If the feature is disabled, and the existing object is not using any non-default values, and the ProcMount field is present in the incoming object, force to the default value. // Note: we cannot force the field to nil when the feature is disabled because it causes a diff against previously persisted data.