From 45efda15599c4f99600cd39b47c52b050db14321 Mon Sep 17 00:00:00 2001 From: Tomas Ostasevicius Date: Fri, 13 Sep 2019 18:36:28 +0200 Subject: [PATCH] [stable/nfs-server-provisioner] fix deployment when not creating storage class (#16331) * When a storage class is not created, mountOptions and parameters are also not included in the file Signed-off-by: Tomas Ostasevicius * Bump nfs-server-provisioner version Signed-off-by: Tomas Ostasevicius Signed-off-by: Marius Voila --- stable/nfs-server-provisioner/Chart.yaml | 2 +- stable/nfs-server-provisioner/templates/storageclass.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/nfs-server-provisioner/Chart.yaml b/stable/nfs-server-provisioner/Chart.yaml index 276dc108521c..b986691c3827 100644 --- a/stable/nfs-server-provisioner/Chart.yaml +++ b/stable/nfs-server-provisioner/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 2.2.1-k8s1.12 description: nfs-server-provisioner is an out-of-tree dynamic provisioner for Kubernetes. You can use it to quickly & easily deploy shared storage that works almost anywhere. name: nfs-server-provisioner -version: 0.3.0 +version: 0.3.1 maintainers: - name: kiall email: kiall@macinnes.ie diff --git a/stable/nfs-server-provisioner/templates/storageclass.yaml b/stable/nfs-server-provisioner/templates/storageclass.yaml index 093e650e5a2a..e2c202260617 100644 --- a/stable/nfs-server-provisioner/templates/storageclass.yaml +++ b/stable/nfs-server-provisioner/templates/storageclass.yaml @@ -17,7 +17,6 @@ reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} {{ if .Values.storageClass.allowVolumeExpansion }} allowVolumeExpansion: {{ .Values.storageClass.allowVolumeExpansion }} {{ end }} -{{ end -}} {{- with .Values.storageClass.parameters }} parameters: {{ toYaml . | indent 2 }} @@ -26,3 +25,4 @@ parameters: mountOptions: {{ toYaml . | indent 2 }} {{- end }} +{{ end -}}