func deleteAgonesControllerPods() error {
	list, err := getAgonesControllerPods()
	if err != nil {
		return err
	}

	policy := metav1.DeletePropagationBackground
	for i := range list.Items {
		err = framework.KubeClient.CoreV1().Pods("agones-system").Delete(list.Items[i].ObjectMeta.Name,
			&metav1.DeleteOptions{PropagationPolicy: &policy})
		if err != nil {
			return err
		}
	}
	return nil
}
// deleteAgonesControllerPods deletes all the Controller pods for the Agones controller,
// faking a controller crash.
deleteAgonesControllerPods deletes all the Controller pods for the Agones controller,
faking a controller crash.
// deleteAgonesControllerPods deletes all the Controller pods for the Agones controller // faking a controller crash .
func deleteAgonesControllerPods() error {
	list, err := getAgonesControllerPods()
	if err != nil {
		return err
	}
	policy := metav1.DeletePropagationBackground
	for i := range list.Items {
		err = framework.KubeClient.CoreV1().Pods("agones-system").Delete(list.Items[i].ObjectMeta.Name,
			&metav1.DeleteOptions{PropagationPolicy: &policy})
		if err != nil {
			return err
		}
	}
	return nil
}
func deleteAgonesControllerPods ( ) error { list , err := getAgonesControllerPods ( ) if err != nil { return err } policy := metav1 . DeletePropagationBackground for i := range list . Items { err = framework . KubeClient . CoreV1 ( ) . Pods ( " " ) . Delete ( list . Items [ i ] . ObjectMeta . Name , & metav1 . DeleteOptions { PropagationPolicy : & policy } ) if err != nil { return err } } return nil }
deleteAgonesControllerPods deletes all the Controller pods for the Agones controller,
faking a controller crash.
deleteAgonesControllerPods deletes all the Controller pods for the Agones controller faking a controller crash .