feat(cluster): add pvcTemplate to storage config
Added the option "pvcTemplate" to cluster.storage and cluster.walStorage. Added some documentation and references to the documentation
Any chance we could push this forward? I need this functionality also.
@cfis I think the only thing missing are the tests. I don't really know how they work in Helm and currently don't have the time to look into it, but if someone has the time to figure it out. I suppose it just tests against the installed manifest on the cluster?
You can test the outputted helm files...is that is what is needed?
I just tested this feature but can't figure out to make it working... Here is the values.yml storage part:
pvcTemplate:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: local-storage
volumeMode: Filesystem
Result in a pvc:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
volumeMode: Filesystem
What's interesting here is that the helm get values return the right template....