func VisitPodConfigmapNames(pod *api.Pod, visitor Visitor, containerType ContainerType) bool {
	VisitContainers(&pod.Spec, containerType, func(c *api.Container, containerType ContainerType) bool {
		return visitContainerConfigmapNames(c, visitor)
	})
	var source *api.VolumeSource
	for i := range pod.Spec.Volumes {
		source = &pod.Spec.Volumes[i].VolumeSource
		switch {
		case source.Projected != nil:
			for j := range source.Projected.Sources {
				if source.Projected.Sources[j].ConfigMap != nil {
					if !visitor(source.Projected.Sources[j].ConfigMap.Name) {
						return false
					}
				}
			}
		case source.ConfigMap != nil:
			if !visitor(source.ConfigMap.Name) {
				return false
			}
		}
	}
	return true
}
// VisitPodConfigmapNames invokes the visitor function with the name of every configmap
// referenced by the pod spec. If visitor returns false, visiting is short-circuited.
// Transitive references (e.g. pod -> pvc -> pv -> secret) are not visited.
// Returns true if visiting completed, false if visiting was short-circuited.
VisitPodConfigmapNames invokes the visitor function with the name of every configmap
referenced by the pod spec. If visitor returns false, visiting is short-circuited.
Transitive references  are not visited.
Returns true if visiting completed, false if visiting was short-circuited.
// VisitPodConfigmapNames invokes the visitor function with the name of every configmap // referenced by the pod spec . If visitor returns false visiting is short - circuited . // Transitive references ( e . g . pod - > pvc - > pv - > secret ) are not visited . // Returns true if visiting completed false if visiting was short - circuited .
func VisitPodConfigmapNames(pod *api.Pod, visitor Visitor, containerType ContainerType) bool {
	VisitContainers(&pod.Spec, containerType, func(c *api.Container, containerType ContainerType) bool {
		return visitContainerConfigmapNames(c, visitor)
	})
	var source *api.VolumeSource
	for i := range pod.Spec.Volumes {
		source = &pod.Spec.Volumes[i].VolumeSource
		switch {
		case source.Projected != nil:
			for j := range source.Projected.Sources {
				if source.Projected.Sources[j].ConfigMap != nil {
					if !visitor(source.Projected.Sources[j].ConfigMap.Name) {
						return false
					}
				}
			}
		case source.ConfigMap != nil:
			if !visitor(source.ConfigMap.Name) {
				return false
			}
		}
	}
	return true
}
func VisitPodConfigmapNames ( pod * api . Pod , visitor Visitor , containerType ContainerType ) bool { VisitContainers ( & pod . Spec , containerType , func ( c * api . Container , containerType ContainerType ) bool { return visitContainerConfigmapNames ( c , visitor ) } ) var source * api . VolumeSource for i := range pod . Spec . Volumes { source = & pod . Spec . Volumes [ i ] . VolumeSource switch { case source . Projected != nil : for j := range source . Projected . Sources { if source . Projected . Sources [ j ] . ConfigMap != nil { if ! visitor ( source . Projected . Sources [ j ] . ConfigMap . Name ) { return false } } } case source . ConfigMap != nil : if ! visitor ( source . ConfigMap . Name ) { return false } } } return true }
VisitPodConfigmapNames invokes the visitor function with the name of every configmap
referenced by the pod spec.
VisitPodConfigmapNames invokes the visitor function with the name of every configmap referenced by the pod spec .