From e0ae94b0517cc3e4c2e589d106ad6a768885e10a Mon Sep 17 00:00:00 2001 From: pentago Date: Mon, 15 Aug 2022 13:25:38 +0200 Subject: [PATCH] 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