From aca10bf343e8412b0be7ccc063fa82f8bd83aeca Mon Sep 17 00:00:00 2001 From: Florian Winkler Date: Fri, 10 Jun 2022 11:13:43 +0200 Subject: [PATCH 1/2] 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 --- charts/nfs-subdir-external-provisioner/README.md | 1 + .../templates/storageclass.yaml | 1 + charts/nfs-subdir-external-provisioner/values.yaml | 3 +++ 3 files changed, 5 insertions(+) diff --git a/charts/nfs-subdir-external-provisioner/README.md b/charts/nfs-subdir-external-provisioner/README.md index 411703dd..9e58ffb7 100644 --- a/charts/nfs-subdir-external-provisioner/README.md +++ b/charts/nfs-subdir-external-provisioner/README.md @@ -65,6 +65,7 @@ The following tables lists the configurable parameters of this chart and their d | `storageClass.onDelete` | Strategy on PVC deletion. Overrides archiveOnDelete when set to lowercase values 'delete' or 'retain' | null | | `storageClass.pathPattern` | Specifies a template for the directory name | null | | `storageClass.accessModes` | Set access mode for PV | `ReadWriteOnce` | +| `storageClass.volumeBindingMode` | Set volume binding mode for Storage Class | `Immediate` | | `storageClass.annotations` | Set additional annotations for the StorageClass | `{}` | | `leaderElection.enabled` | Enables or disables leader election | `true` | | `nfs.server` | Hostname of the NFS server (required) | null (ip or hostname) | diff --git a/charts/nfs-subdir-external-provisioner/templates/storageclass.yaml b/charts/nfs-subdir-external-provisioner/templates/storageclass.yaml index 698d32b9..fc360cef 100644 --- a/charts/nfs-subdir-external-provisioner/templates/storageclass.yaml +++ b/charts/nfs-subdir-external-provisioner/templates/storageclass.yaml @@ -15,6 +15,7 @@ metadata: provisioner: {{ template "nfs-subdir-external-provisioner.provisionerName" . }} allowVolumeExpansion: {{ .Values.storageClass.allowVolumeExpansion }} reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} +volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }} parameters: archiveOnDelete: "{{ .Values.storageClass.archiveOnDelete }}" {{- if .Values.storageClass.pathPattern }} diff --git a/charts/nfs-subdir-external-provisioner/values.yaml b/charts/nfs-subdir-external-provisioner/values.yaml index e7d4a78d..f6260238 100644 --- a/charts/nfs-subdir-external-provisioner/values.yaml +++ b/charts/nfs-subdir-external-provisioner/values.yaml @@ -51,6 +51,9 @@ storageClass: # Set access mode - ReadWriteOnce, ReadOnlyMany or ReadWriteMany accessModes: ReadWriteOnce + # Set volume bindinng mode - Immediate or WaitForFirstConsumer + volumeBindingMode: Immediate + # Storage class annotations annotations: {} From 6d07787c03e253693802b40b21c2187549cf6680 Mon Sep 17 00:00:00 2001 From: Florian Winkler Date: Wed, 3 Aug 2022 22:13:29 +0200 Subject: [PATCH 2/2] Update Chart.yaml --- charts/nfs-subdir-external-provisioner/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/nfs-subdir-external-provisioner/Chart.yaml b/charts/nfs-subdir-external-provisioner/Chart.yaml index 1580608e..886674ac 100644 --- a/charts/nfs-subdir-external-provisioner/Chart.yaml +++ b/charts/nfs-subdir-external-provisioner/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 4.0.2 description: nfs-subdir-external-provisioner is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes. name: nfs-subdir-external-provisioner home: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner -version: 4.0.16 +version: 4.0.17 kubeVersion: ">=1.9.0-0" sources: - https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner