From 411e1bd86abd96489e44cec0d9736d4e52207313 Mon Sep 17 00:00:00 2001 From: Hyunsun Moon Date: Tue, 10 Oct 2017 20:42:28 +0900 Subject: [PATCH] Ceph: Make provision_storage_class have an effect Currently, "general" storage class always created even if provision_storage_class is set to false. This patch fixed storageclass template to check the option is enabled. Change-Id: I6397b24fa9c6517f2646e53ea0f601ad2aa4b9f8 --- ceph/templates/storageclass.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph/templates/storageclass.yaml b/ceph/templates/storageclass.yaml index fde0d14507..4916d0caa8 100644 --- a/ceph/templates/storageclass.yaml +++ b/ceph/templates/storageclass.yaml @@ -17,6 +17,7 @@ limitations under the License. {{- if .Values.manifests.storageclass }} {{- $envAll := . }} {{- if .Values.deployment.ceph }} +{{- if .Values.storageclass.provision_storage_class }} --- apiVersion: storage.k8s.io/v1 kind: StorageClass @@ -33,3 +34,4 @@ parameters: userSecretName: {{ .Values.storageclass.user_secret_name }} {{- end }} {{- end }} +{{- end }}