361f0bebb7
Currently configuring storage classes is static. If we want to add another storageclass for an exmaple for harddisk then we have to create another yaml along with update in .Values.yaml. Using this change we can create as many storageclasses we want. Change will basically iterate in loop and apply the values present in .Values At the same time we have to update the changes in .Values.storageclass.rbd paramert values in all applicable places Change-Id: I3207f047c3f8b1a33dfb97c87b9ea7120b54c4b4 Story: ceph-provisioners-improvement Signed-off-by: Kranthi Guttikonda <kranthi.guttikonda@b-yond.com> Signed-off-by: kranthikirang <kranthi.guttikonda@b-yond.com>
22 lines
828 B
YAML
22 lines
828 B
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if and .Values.manifests.storageclass (.Values.deployment.ceph) }}
|
|
{{- range $storageclass, $val := .Values.storageclass }}
|
|
{{ dict "storageclass_data" $val "envAll" $ | include "helm-toolkit.manifests.ceph-storageclass" }}
|
|
{{- end }}
|
|
{{- end }}
|