func newPVC(cr *v1alpha1.RethinkDBCluster) *corev1.PersistentVolumeClaim {
	var pvcSpec corev1.PersistentVolumeClaimSpec
	if isPVEnabled(cr) {
		pvcSpec = *cr.Spec.Pod.PersistentVolumeClaimSpec
	}

	return &corev1.PersistentVolumeClaim{
		ObjectMeta: metav1.ObjectMeta{
			GenerateName: fmt.Sprintf("%s-", cr.ObjectMeta.Name),
			Namespace:    cr.ObjectMeta.Namespace,
			Labels:       cr.ObjectMeta.Labels,
		},
		Spec: pvcSpec,
	}
}
// newPVC creates a new PersistentVolumeClaim for the cluster.
newPVC creates a new PersistentVolumeClaim for the cluster.
// newPVC creates a new PersistentVolumeClaim for the cluster .
func newPVC(cr *v1alpha1.RethinkDBCluster) *corev1.PersistentVolumeClaim {
	var pvcSpec corev1.PersistentVolumeClaimSpec
	if isPVEnabled(cr) {
		pvcSpec = *cr.Spec.Pod.PersistentVolumeClaimSpec
	}
	return &corev1.PersistentVolumeClaim{
		ObjectMeta: metav1.ObjectMeta{
			GenerateName: fmt.Sprintf("%s-", cr.ObjectMeta.Name),
			Namespace:    cr.ObjectMeta.Namespace,
			Labels:       cr.ObjectMeta.Labels,
		},
		Spec: pvcSpec,
	}
}
func newPVC ( cr * v1alpha1 . RethinkDBCluster ) * corev1 . PersistentVolumeClaim { var pvcSpec corev1 . PersistentVolumeClaimSpec if isPVEnabled ( cr ) { pvcSpec = * cr . Spec . Pod . PersistentVolumeClaimSpec } return & corev1 . PersistentVolumeClaim { ObjectMeta : metav1 . ObjectMeta { GenerateName : fmt . Sprintf ( " " , cr . ObjectMeta . Name ) , Namespace : cr . ObjectMeta . Namespace , Labels : cr . ObjectMeta . Labels , } , Spec : pvcSpec , } }
newPVC creates a new PersistentVolumeClaim for the cluster.
newPVC creates a new PersistentVolumeClaim for the cluster .