func (r *ReconcileRethinkDBCluster) listPVCs(cr *rethinkdbv1alpha1.RethinkDBCluster) ([]corev1.PersistentVolumeClaim, error) {
	found := &corev1.PersistentVolumeClaimList{}
	labelSelector := labels.SelectorFromSet(labelsForCluster(cr))
	listOps := &client.ListOptions{Namespace: cr.Namespace, LabelSelector: labelSelector}
	err := r.client.List(context.TODO(), listOps, found)
	if err != nil {
		log.Error(err, "failed to list persistent volume claims")
		return nil, err
	}
	return found.Items, nil
}
// listPVCs will return a slice containing the persistent volume claims for the cluster.
listPVCs will return a slice containing the persistent volume claims for the cluster.
// listPVCs will return a slice containing the persistent volume claims for the cluster .
func (r *ReconcileRethinkDBCluster) listPVCs(cr *rethinkdbv1alpha1.RethinkDBCluster) ([]corev1.PersistentVolumeClaim, error) {
	found := &corev1.PersistentVolumeClaimList{}
	labelSelector := labels.SelectorFromSet(labelsForCluster(cr))
	listOps := &client.ListOptions{Namespace: cr.Namespace, LabelSelector: labelSelector}
	err := r.client.List(context.TODO(), listOps, found)
	if err != nil {
		log.Error(err, "failed to list persistent volume claims")
		return nil, err
	}
	return found.Items, nil
}
func ( r * ReconcileRethinkDBCluster ) listPVCs ( cr * rethinkdbv1alpha1 . RethinkDBCluster ) ( [ ] corev1 . PersistentVolumeClaim , error ) { found := & corev1 . PersistentVolumeClaimList { } labelSelector := labels . SelectorFromSet ( labelsForCluster ( cr ) ) listOps := & client . ListOptions { Namespace : cr . Namespace , LabelSelector : labelSelector } err := r . client . List ( context . TODO ( ) , listOps , found ) if err != nil { log . Error ( err , " " ) return nil , err } return found . Items , nil }
listPVCs will return a slice containing the persistent volume claims for the cluster.
listPVCs will return a slice containing the persistent volume claims for the cluster .