func newPod(cr *v1alpha1.RethinkDBCluster, members []corev1.Pod) *corev1.Pod {
	peers := []string{}
	for _, member := range members {
		peers = append(peers, member.Status.PodIP)
	}

	return &corev1.Pod{
		ObjectMeta: metav1.ObjectMeta{
			GenerateName: fmt.Sprintf("%s-", cr.ObjectMeta.Name),
			Namespace:    cr.ObjectMeta.Namespace,
			Labels:       labelsForCluster(cr),
		},
		Spec: corev1.PodSpec{
			Containers: newContainers(cr, peers),
			Volumes:    newVolumes(cr),
		},
	}
}
// newPod returns a new Pod with the same namespace and name prefix as the cr
newPod returns a new Pod with the same namespace and name prefix as the cr
// newPod returns a new Pod with the same namespace and name prefix as the cr
func newPod(cr *v1alpha1.RethinkDBCluster, members []corev1.Pod) *corev1.Pod {
	peers := []string{}
	for _, member := range members {
		peers = append(peers, member.Status.PodIP)
	}
	return &corev1.Pod{
		ObjectMeta: metav1.ObjectMeta{
			GenerateName: fmt.Sprintf("%s-", cr.ObjectMeta.Name),
			Namespace:    cr.ObjectMeta.Namespace,
			Labels:       labelsForCluster(cr),
		},
		Spec: corev1.PodSpec{
			Containers: newContainers(cr, peers),
			Volumes:    newVolumes(cr),
		},
	}
}
func newPod ( cr * v1alpha1 . RethinkDBCluster , members [ ] corev1 . Pod ) * corev1 . Pod { peers := [ ] string { } for _ , member := range members { peers = append ( peers , member . Status . PodIP ) } return & corev1 . Pod { ObjectMeta : metav1 . ObjectMeta { GenerateName : fmt . Sprintf ( " " , cr . ObjectMeta . Name ) , Namespace : cr . ObjectMeta . Namespace , Labels : labelsForCluster ( cr ) , } , Spec : corev1 . PodSpec { Containers : newContainers ( cr , peers ) , Volumes : newVolumes ( cr ) , } , } }
newPod returns a new Pod with the same namespace and name prefix as the cr
newPod returns a new Pod with the same namespace and name prefix as the cr