From 97e2a07e984555edb02a155352a79a63967cd8cb Mon Sep 17 00:00:00 2001 From: Diwakar Sharma Date: Wed, 8 Nov 2023 05:18:47 +0000 Subject: [PATCH] chore(storageclass): provide switch to toggle storage class creation Signed-off-by: Diwakar Sharma --- deploy/helm/charts/Chart.yaml | 2 +- deploy/helm/charts/templates/kernel-nfs-storageclass.yaml | 2 ++ deploy/helm/charts/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/helm/charts/Chart.yaml b/deploy/helm/charts/Chart.yaml index 18de53a..ebf0de3 100644 --- a/deploy/helm/charts/Chart.yaml +++ b/deploy/helm/charts/Chart.yaml @@ -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.1 +version: 0.10.2 # 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 diff --git a/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml b/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml index 6d71e42..1d76141 100644 --- a/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml +++ b/deploy/helm/charts/templates/kernel-nfs-storageclass.yaml @@ -1,5 +1,6 @@ --- # Storage classes for OpenEBS NFS Dynamic PV +{{- if .Values.nfsStorageClass.enabled }} apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -61,3 +62,4 @@ mountOptions: - {{ . }} {{- end }} {{- end }} +{{- end }} diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index 27775a3..269ed0b 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -89,6 +89,8 @@ nfsProvisioner: nfsStorageClass: name: openebs-kernel-nfs + # If true, enables creation of the openebs-kernel-nfs StorageClass + enabled: true reclaimPolicy: Delete nfsServerType: kernel isDefaultClass: false