openebs / rawfile-localpv

Dynamically deploy Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is provisioned from RAW-device file loop mounted Local-Hostpath storage.
https://openebs.io
Apache License 2.0
71 stars 25 forks source link

Make the data-dir configurable. #3

Open kmova opened 4 years ago

kmova commented 4 years ago

The data directory used for creating the sparse file is hardcoded to "/var/csi/rawfile" in the task template. https://github.com/openebs/rawfile-localpv/blob/master/templates/task.yaml#L14

Similar to image_tag and image_repository, the data-dir also should be configurable via the env variable.

Note: If you want to get started on setting up rawfile and checking how it works, you can follow the helm3 instructions in the repo or use the YAML instructions available here:

https://github.com/kmova/bootstrap/blob/master/openebs-localpv/rawfile/setup.md

jshin47 commented 3 years ago

I too would appreciate making this configurable and varied by storage class.

ronaldyuwandika commented 3 years ago

Hello @kmova i have made PR for this feature in this PR https://github.com/openebs/rawfile-localpv/pull/4 Please check and try it :))

Thank you

mhkarimi1383 commented 6 months ago

Hi @kmova

I have made this possible in https://github.com/openebs/rawfile-localpv/pull/28 and also I have made other changes in helm chart to be more customizable :), Check it out if you want :)