From 35b51bd4aaed81b819fb217a9bbbf2b70f48baff Mon Sep 17 00:00:00 2001 From: Diwakar Sharma Date: Tue, 19 Sep 2023 04:35:55 +0000 Subject: [PATCH] chore(chart): add nfs mount options field Signed-off-by: Diwakar Sharma Co-authored-by: pentago --- deploy/helm/charts/templates/kernel-nfs-storageclass.yaml | 6 ++++++ deploy/helm/charts/values.yaml | 3 +++ 2 files changed, 9 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..fbb7e56 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -93,6 +93,9 @@ nfsStorageClass: nfsServerType: kernel isDefaultClass: false backendStorageClass: "" + # 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