Skip to content

Commit 913cc91

Browse files
authored
chore(chart): adding hooks configuration to chart (#121)
* updating provisioner to load hook configuration from pre-defined file '/etc/nfs-provisioner' Signed-off-by: mayank <mayank.patel@mayadata.io>
1 parent 59d00f6 commit 913cc91

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

deploy/helm/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Helm chart for OpenEBS Dynamic NFS PV. For instructions to install
44
type: application
55
# This is the chart version. This version number should be incremented each time you make changes
66
# to the chart and its templates, including the app version.
7-
version: 0.7.2
7+
version: 0.7.3
88
# This is the version number of the application being deployed. This version number should be
99
# incremented each time you make changes to the application.
1010
appVersion: 0.7.1

deploy/helm/charts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
130130
| `nfsProvisioner.nfsServerNamespace` | NFS server namespace | `"openebs"` |
131131
| `nfsProvisioner.nfsServerNodeAffinity` | NFS Server node affinity rules | `""` |
132132
| `nfsProvisioner.nfsBackendPvcTimeout` | Timeout for backend PVC binding in seconds | `"60"` |
133+
| `nfsProvisioner.nfsHookConfigMap` | Existing Configmap name to load hook configuration | `""` |
133134
| `nfsStorageClass.backendStorageClass` | StorageClass to be used to provision the backend volume. If not specified, the default StorageClass is used. | `""` |
134135
| `nfsStorageClass.isDefaultClass` | Make 'openebs-kernel-nfs' the default StorageClass | `"false"` |
135136
| `nfsStorageClass.reclaimPolicy` | ReclaimPolicy for NFS PVs | `"Delete"` |

deploy/helm/charts/templates/deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ spec:
121121
- test `pgrep "^provisioner-nfs.*"` = 1
122122
initialDelaySeconds: {{ .Values.nfsProvisioner.healthCheck.initialDelaySeconds }}
123123
periodSeconds: {{ .Values.nfsProvisioner.healthCheck.periodSeconds }}
124+
volumeMounts:
125+
# Mounting hook-config volume into nfs-provisioner config directory
126+
{{- if .Values.nfsProvisioner.nfsHookConfigMap }}
127+
- name: hook-config
128+
mountPath: /etc/nfs-provisioner
129+
{{- end }}
130+
volumes:
131+
# hook-config volume uses ConfigMap 'hook-config' to load hook configuration
132+
{{- if .Values.nfsProvisioner.nfsHookConfigMap }}
133+
- name: hook-config
134+
configMap:
135+
name: {{ .Values.nfsProvisioner.nfsHookConfigMap }}
136+
{{- end }}
124137
{{- if .Values.nfsProvisioner.nodeSelector }}
125138
nodeSelector:
126139
{{ toYaml .Values.nfsProvisioner.nodeSelector | indent 8 }}

deploy/helm/charts/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ nfsProvisioner:
8181
# - If NFS Server needs to be placed only on storage nodes & nfs nodes then
8282
# value can be: "kubernetes.io/storage-node,kubernetes.io/nfs-node"
8383
# nfsServerNodeAffinity: "kubernetes.io/storage-node,kubernetes.io/nfs-node"
84+
#
85+
# nfsHookConfigMap represent the ConfigMap name to be used for hook configuration.
86+
# By default, nfsHookConfigMap is set to empty.
87+
# If nfsHookConfigMap is set then chart will mount the configmap using volume, named `hook-config`
88+
nfsHookConfigMap: ""
8489

8590
nfsStorageClass:
8691
name: openebs-kernel-nfs

0 commit comments

Comments
 (0)