Skip to content

Commit

Permalink
Merge pull request #164 from openebs/mnt_opts
Browse files Browse the repository at this point in the history
chore(chart): add nfs mount options field
  • Loading branch information
dsharma-dc authored Sep 19, 2023
2 parents edeab44 + 0e83011 commit 0d2f0c4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/helm/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
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 0d2f0c4

Please sign in to comment.