From e0ae94b0517cc3e4c2e589d106ad6a768885e10a Mon Sep 17 00:00:00 2001 From: pentago Date: Mon, 15 Aug 2022 13:25:38 +0200 Subject: [PATCH 1/2] Added support for listing custom mountOptions Signed-off-by: pentago Signed-off-by: Diwakar Sharma --- deploy/helm/charts/templates/kernel-nfs-storageclass.yaml | 6 ++++++ deploy/helm/charts/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml b/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml index da77f52..6d71e42 100644 --- a/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml +++ b/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml @@ -55,3 +55,9 @@ metadata: {{- end }} provisioner: openebs.io/nfsrwx reclaimPolicy: {{ .Values.nfsStorageClass.reclaimPolicy }} +{{- if .Values.nfsStorageClass.mountOptions }} +mountOptions: + {{- range .Values.nfsStorageClass.mountOptions }} + - {{ . }} + {{- end }} +{{- end }} diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index 7d1f226..e55d14c 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -93,6 +93,8 @@ nfsStorageClass: nfsServerType: kernel isDefaultClass: false backendStorageClass: "" + mountOptions: + - vers=4.1 # The customServerConfig key passes a custom /etc/exports configuration to # the NFS servers created using this StorageClass. # The configuration settings are not validated, and can lead to security From 0e8301105c3528a715369260d22307ecebbd8195 Mon Sep 17 00:00:00 2001 From: Diwakar Sharma Date: Tue, 19 Sep 2023 06:02:04 +0000 Subject: [PATCH 2/2] chore(chart): update chart version and README Signed-off-by: Diwakar Sharma --- deploy/helm/charts/Chart.yaml | 2 +- deploy/helm/charts/README.md | 1 + deploy/helm/charts/values.yaml | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/helm/charts/Chart.yaml b/deploy/helm/charts/Chart.yaml index e2d93db..18de53a 100644 --- a/deploy/helm/charts/Chart.yaml +++ b/deploy/helm/charts/Chart.yaml @@ -4,7 +4,7 @@ description: Helm chart for OpenEBS Dynamic NFS PV. For instructions to install type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.10.0 +version: 0.10.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. appVersion: 0.10.0 diff --git a/deploy/helm/charts/README.md b/deploy/helm/charts/README.md index 6ef3117..8ef81e6 100644 --- a/deploy/helm/charts/README.md +++ b/deploy/helm/charts/README.md @@ -132,6 +132,7 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat | `nfsProvisioner.nfsBackendPvcTimeout` | Timeout for backend PVC binding in seconds | `"60"` | | `nfsProvisioner.nfsHookConfigMap` | Existing Configmap name to load hook configuration | `""` | | `nfsStorageClass.backendStorageClass` | StorageClass to be used to provision the backend volume. If not specified, the default StorageClass is used. | `""` | +| `nfsStorageClass.mountOptions` | NFS mount options to be passed on to storageclass | `[]` | `nfsStorageClass.isDefaultClass` | Make 'openebs-kernel-nfs' the default StorageClass | `"false"` | | `nfsStorageClass.reclaimPolicy` | ReclaimPolicy for NFS PVs | `"Delete"` | | `nfsStorageClass.leaseTime` | Renewal period(in seconds) for NFS client state | `90` | diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index e55d14c..27775a3 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -93,8 +93,9 @@ nfsStorageClass: nfsServerType: kernel isDefaultClass: false backendStorageClass: "" - mountOptions: - - vers=4.1 + # NFS Mount Options to be applied to the storage class. + # For more information: https://linux.die.net/man/5/nfs + mountOptions: [] # The customServerConfig key passes a custom /etc/exports configuration to # the NFS servers created using this StorageClass. # The configuration settings are not validated, and can lead to security