Skip to content

Commit

Permalink
feat(helm): add gcEnable configuration to chart for PR openebs-archiv…
Browse files Browse the repository at this point in the history
…e#167

Signed-off-by: Kasakaze <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
njuptlzf authored and niladrih committed Dec 8, 2023
1 parent aaf65d0 commit 6339352
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --creat
| `nfsProvisioner.nfsServerNodeAffinity` | NFS Server node affinity rules | `""` |
| `nfsProvisioner.nfsBackendPvcTimeout` | Timeout for backend PVC binding in seconds | `"60"` |
| `nfsProvisioner.nfsHookConfigMap` | Existing Configmap name to load hook configuration | `""` |
| `nfsProvisioner.enableGarbageCollection` | Enable garbage collection | `true` |
| `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"` |
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ spec:
- name: OPENEBS_IO_NFS_SERVER_NODE_AFFINITY
value: "{{ .Values.nfsProvisioner.nfsServerNodeAffinity }}"
{{- end }}
# Provide a switch to turn off the function of clearing stale pvc to avoid
# garbage collecting an NFS backend PVC if the NFS PVC is deleted.
- name: OPENEBS_IO_NFS_SERVER_GARBAGE_COLLECTION_ENABLED
value: "{{ .Values.nfsProvisioner.enableGarbageCollection }}"
{{- if .Values.nfsProvisioner.nfsBackendPvcTimeout }}
- name: OPENEBS_IO_NFS_SERVER_BACKEND_PVC_TIMEOUT
value: "{{ .Values.nfsProvisioner.nfsBackendPvcTimeout }}"
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ nfsProvisioner:
tag:
pullPolicy: IfNotPresent
enableLeaderElection: "true"
# Provide a switch to turn off the function of clearing stale pvc to avoid
# garbage collecting an NFS backend PVC if the NFS PVC is deleted.
enableGarbageCollection: "true"
# Specify image name of nfs-server-alpine used for creating nfs server deployment
# If not mentioned, default value openebs/nfs-server-alpine:tag will be used where
# the tag will be the same as a provisioner-nfs image tag
Expand Down

0 comments on commit 6339352

Please sign in to comment.