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

	if podSpec.SecurityContext != nil && podSpec.SecurityContext.RunAsGroup != nil {
		return true
	}

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

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