Skip to content

Commit

Permalink
chore(chart): add nfs mount options field
Browse files Browse the repository at this point in the history
Signed-off-by: Diwakar Sharma <[email protected]>
Co-authored-by: pentago <[email protected]>
  • Loading branch information
dsharma-dc and pentago committed Sep 19, 2023
1 parent edeab44 commit 35b51bd
Show file tree
Hide file tree
Showing 2 changed files with 9 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 }}
3 changes: 3 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35b51bd

Please sign in to comment.