Skip to content

Commit

Permalink
Added support for listing custom mountOptions
Browse files Browse the repository at this point in the history
Signed-off-by: pentago <[email protected]>
Signed-off-by: Diwakar Sharma <[email protected]>
  • Loading branch information
pentago authored and dsharma-dc committed Sep 19, 2023
1 parent edeab44 commit e0ae94b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/helm/charts/templates/kernel-nfs-storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0ae94b

Please sign in to comment.