// filters pods by annotations and namespace, selects a random pod to kill
filters pods by annotations and namespace, selects a random pod to kill
// filters pods by annotations and namespace selects a random pod to kill
func (p *PodChaosMonkey) filterAndDeletePods(randomGenerator util.IRandomGenerator) {
	pods := filterPodsByAnnotations(p.getPods(), p.Annotations)
	if len(pods) > 0 {
		p.deletePod(pods[randomGenerator.Int()%len(pods)])
	}
}
func ( p * PodChaosMonkey ) filterAndDeletePods ( randomGenerator util . IRandomGenerator ) { pods := filterPodsByAnnotations ( p . getPods ( ) , p . Annotations ) if len ( pods ) > 0 { p . deletePod ( pods [ randomGenerator . Int ( ) % len ( pods ) ] ) } }
filters pods by annotations and namespace, selects a random pod to kill
filters pods by annotations and namespace selects a random pod to kill