charts icon indicating copy to clipboard operation
charts copied to clipboard

feat(cluster): add pvcTemplate to storage config

Open davideperozzi opened this issue 1 year ago • 3 comments

Added the option "pvcTemplate" to cluster.storage and cluster.walStorage. Added some documentation and references to the documentation

davideperozzi avatar May 05 '25 12:05 davideperozzi

Any chance we could push this forward? I need this functionality also.

cfis avatar Oct 13 '25 04:10 cfis

@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?

davideperozzi avatar Oct 14 '25 08:10 davideperozzi

You can test the outputted helm files...is that is what is needed?

cfis avatar Oct 15 '25 03:10 cfis

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....

AntoineGGG avatar Jan 22 '26 12:01 AntoineGGG