Support global pv and pvc management on helm charts
The management of PV and PVC is duplicated or use manually created elements in several parts of the charts:
- graph (pv and pvc management)
- alter (needs the volume to be created before deploying)
- cassandra-checks (PVC management)
For next-version, the functionality is missing to be able to share a volume between rw and ro objstorages without using a host path volume.
Having a global section that allows to create the volumes and the claim would allow to manage the volumes globally for an environment, reduce the duplication, and add more flexibility for the deployment definitions.
The idea is to support the something like:
persistentVolumes:
- pv1:
<spec>
- pv2:
<spec>
persistentVolumeClaims:
- claim1:
<spec>
- claim2:
<spec>