func procMountInUse(podSpec *api.PodSpec) bool {
	if podSpec == nil {
		return false
	}

	var inUse bool
	VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
		if c.SecurityContext == nil || c.SecurityContext.ProcMount == nil {
			return true
		}
		if *c.SecurityContext.ProcMount != api.DefaultProcMount {
			inUse = true
			return false
		}
		return true
	})

	return inUse
}
// procMountInUse returns true if the pod spec is non-nil and has a SecurityContext's ProcMount field set to a non-default value
procMountInUse returns true if the pod spec is non-nil and has a SecurityContext's ProcMount field set to a non-default value
// procMountInUse returns true if the pod spec is non - nil and has a SecurityContext ' s ProcMount field set to a non - default value
func procMountInUse(podSpec *api.PodSpec) bool {
	if podSpec == nil {
		return false
	}
	var inUse bool
	VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
		if c.SecurityContext == nil || c.SecurityContext.ProcMount == nil {
			return true
		}
		if *c.SecurityContext.ProcMount != api.DefaultProcMount {
			inUse = true
			return false
		}
		return true
	})
	return inUse
}
func procMountInUse ( podSpec * api . PodSpec ) bool { if podSpec == nil { return false } var inUse bool VisitContainers ( podSpec , AllContainers , func ( c * api . Container , containerType ContainerType ) bool { if c . SecurityContext == nil || c . SecurityContext . ProcMount == nil { return true } if * c . SecurityContext . ProcMount != api . DefaultProcMount { inUse = true return false } return true } ) return inUse }
procMountInUse returns true if the pod spec is non-nil and has a SecurityContext's ProcMount field set to a non-default value
procMountInUse returns true if the pod spec is non - nil and has a SecurityContext ' s ProcMount field set to a non - default value