Merge pull request #20 from nuwang/add_configurable_mounter

Make mounter configurable
This commit is contained in:
Vitaliy Filippov 2023-06-20 13:18:26 +03:00 committed by GitHub
commit 9a04d5a6eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,7 @@ The following table lists all configuration parameters and their default values.
| `storageClass.create` | Specifies whether the storage class should be created | true | | `storageClass.create` | Specifies whether the storage class should be created | true |
| `storageClass.name` | Storage class name | csi-s3 | | `storageClass.name` | Storage class name | csi-s3 |
| `storageClass.singleBucket` | Use a single bucket for all dynamically provisioned persistent volumes | | | `storageClass.singleBucket` | Use a single bucket for all dynamically provisioned persistent volumes | |
| `storageClass.mounter` | Mounter to use. Either geesefs, s3fs or rclone. geesefs recommended | geesefs |
| `storageClass.mountOptions` | GeeseFS mount options | `--memory-limit 1000 --dir-mode 0777 --file-mode 0666` | | `storageClass.mountOptions` | GeeseFS mount options | `--memory-limit 1000 --dir-mode 0777 --file-mode 0666` |
| `storageClass.reclaimPolicy` | Volume reclaim policy | Delete | | `storageClass.reclaimPolicy` | Volume reclaim policy | Delete |
| `storageClass.annotations` | Annotations for the storage class | | | `storageClass.annotations` | Annotations for the storage class | |

View file

@ -9,7 +9,7 @@ metadata:
{{- end }} {{- end }}
provisioner: ru.yandex.s3.csi provisioner: ru.yandex.s3.csi
parameters: parameters:
mounter: geesefs mounter: "{{ .Values.storageClass.mounter }}"
options: "{{ .Values.storageClass.mountOptions }}" options: "{{ .Values.storageClass.mountOptions }}"
{{- if .Values.storageClass.singleBucket }} {{- if .Values.storageClass.singleBucket }}
bucket: "{{ .Values.storageClass.singleBucket }}" bucket: "{{ .Values.storageClass.singleBucket }}"

View file

@ -16,6 +16,8 @@ storageClass:
name: csi-s3 name: csi-s3
# Use a single bucket for all dynamically provisioned persistent volumes # Use a single bucket for all dynamically provisioned persistent volumes
singleBucket: "" singleBucket: ""
# mounter to use - either geesefs, s3fs or rclone (default geesefs)
mounter: geesefs
# GeeseFS mount options # GeeseFS mount options
mountOptions: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666" mountOptions: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666"
# Volume reclaim policy # Volume reclaim policy