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

	var inUse bool
	VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
		for i := range c.VolumeMounts {
			if len(c.VolumeMounts[i].SubPathExpr) > 0 {
				inUse = true
				return false
			}
		}
		return true
	})

	return inUse
}
// subpathExprInUse returns true if the pod spec is non-nil and has a volume mount that makes use of the subPathExpr feature
subpathExprInUse returns true if the pod spec is non-nil and has a volume mount that makes use of the subPathExpr feature
// subpathExprInUse returns true if the pod spec is non - nil and has a volume mount that makes use of the subPathExpr feature
func subpathExprInUse(podSpec *api.PodSpec) bool {
	if podSpec == nil {
		return false
	}
	var inUse bool
	VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
		for i := range c.VolumeMounts {
			if len(c.VolumeMounts[i].SubPathExpr) > 0 {
				inUse = true
				return false
			}
		}
		return true
	})
	return inUse
}
func subpathExprInUse ( podSpec * api . PodSpec ) bool { if podSpec == nil { return false } var inUse bool VisitContainers ( podSpec , AllContainers , func ( c * api . Container , containerType ContainerType ) bool { for i := range c . VolumeMounts { if len ( c . VolumeMounts [ i ] . SubPathExpr ) > 0 { inUse = true return false } } return true } ) return inUse }
subpathExprInUse returns true if the pod spec is non-nil and has a volume mount that makes use of the subPathExpr feature
subpathExprInUse returns true if the pod spec is non - nil and has a volume mount that makes use of the subPathExpr feature