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
This commit is contained in:
Hyunsun Moon 2017-10-10 20:42:28 +09:00 committed by Pete Birley
parent c699614b2d
commit 411e1bd86a

View File

@ -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 }}