Use previously created PVCs for PXDBC resource

Hello,

I would like to configure the PVCs of each of the 3 replicas in a cluster to be allocated to previously created ones. For example, having previously created PVCs pvc1, pvc2, pvc3 and have each of the replicas use each of them respectively.

One use case for that is, for example, I have 3 separate NFS servers, each with its own Storage Class. I don’t want to be limited to one single StorageClassName in the PXDBC configuration. Instead, by pointing to previously created PVCs, I can have each of them use a different Storage Class and, consequently, a distinct NFS server.

Would that be possible?

I was able to find a solution. Just pre-create the pvcs with the same names that would be dinamically created by the operator. To avoid any inconsistencies, if doing that make sure to disable the item - delete-pxc-pvc from the finalizers key.