func (r *ReconcileRethinkDBCluster) addPVC(cr *rethinkdbv1alpha1.RethinkDBCluster) error {
	log.Info("creating new persistent volume claim")
	pvc := newPVC(cr)

	// Set RethinkDB instance as the owner and controller
	if err := controllerutil.SetControllerReference(cr, pvc, r.scheme); err != nil {
		return err
	}

	return r.client.Create(context.TODO(), newPVC(cr))
}
// addPVC will add a new Pod to the cluster.
addPVC will add a new Pod to the cluster.
// addPVC will add a new Pod to the cluster .
func (r *ReconcileRethinkDBCluster) addPVC(cr *rethinkdbv1alpha1.RethinkDBCluster) error {
	log.Info("creating new persistent volume claim")
	pvc := newPVC(cr)
	if err := controllerutil.SetControllerReference(cr, pvc, r.scheme); err != nil {
		return err
	}
	return r.client.Create(context.TODO(), newPVC(cr))
}
func ( r * ReconcileRethinkDBCluster ) addPVC ( cr * rethinkdbv1alpha1 . RethinkDBCluster ) error { log . Info ( " " ) pvc := newPVC ( cr ) if err := controllerutil . SetControllerReference ( cr , pvc , r . scheme ) ; err != nil { return err } return r . client . Create ( context . TODO ( ) , newPVC ( cr ) ) }
addPVC will add a new Pod to the cluster.
addPVC will add a new Pod to the cluster .
// Set RethinkDB instance as the owner and controller