Skip to content

Commit aca10bf

Browse files
committed
There was no option to set the volumeBindingMode for the StorageClass.
Added the option in nfs-subdir-external-provisioner/charts/nfs-subdir-external-provisioner/templates/storageclass.yaml and nfs-subdir-external-provisioner/charts/nfs-subdir-external-provisioner/values.yaml as well as updated charts/nfs-subdir-external-provisioner/README.md This fixes Issue #172
1 parent 0bd4e87 commit aca10bf

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

charts/nfs-subdir-external-provisioner/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ The following tables lists the configurable parameters of this chart and their d
6565
| `storageClass.onDelete` | Strategy on PVC deletion. Overrides archiveOnDelete when set to lowercase values 'delete' or 'retain' | null |
6666
| `storageClass.pathPattern` | Specifies a template for the directory name | null |
6767
| `storageClass.accessModes` | Set access mode for PV | `ReadWriteOnce` |
68+
| `storageClass.volumeBindingMode` | Set volume binding mode for Storage Class | `Immediate` |
6869
| `storageClass.annotations` | Set additional annotations for the StorageClass | `{}` |
6970
| `leaderElection.enabled` | Enables or disables leader election | `true` |
7071
| `nfs.server` | Hostname of the NFS server (required) | null (ip or hostname) |

charts/nfs-subdir-external-provisioner/templates/storageclass.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ metadata:
1515
provisioner: {{ template "nfs-subdir-external-provisioner.provisionerName" . }}
1616
allowVolumeExpansion: {{ .Values.storageClass.allowVolumeExpansion }}
1717
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
18+
volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }}
1819
parameters:
1920
archiveOnDelete: "{{ .Values.storageClass.archiveOnDelete }}"
2021
{{- if .Values.storageClass.pathPattern }}

charts/nfs-subdir-external-provisioner/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ storageClass:
5151
# Set access mode - ReadWriteOnce, ReadOnlyMany or ReadWriteMany
5252
accessModes: ReadWriteOnce
5353

54+
# Set volume bindinng mode - Immediate or WaitForFirstConsumer
55+
volumeBindingMode: Immediate
56+
5457
# Storage class annotations
5558
annotations: {}
5659

0 commit comments

Comments
 (0)