Merge "Update volume type creation bootstrap logic"
This commit is contained in:
commit
0eb93933ff
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Cinder
|
||||
name: cinder
|
||||
version: 0.1.11
|
||||
version: 0.1.12
|
||||
home: https://docs.openstack.org/cinder/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_vertical.png
|
||||
sources:
|
||||
|
@ -19,9 +19,14 @@ export HOME=/tmp
|
||||
|
||||
{{- if .Values.bootstrap.enabled | default "echo 'Not Enabled'" }}
|
||||
|
||||
{{- /* Create volumes defined in Values.bootstrap */}}
|
||||
{{- range $name, $properties := .Values.bootstrap.volume_types }}
|
||||
{{- if $properties.volume_backend_name }}
|
||||
{{- /* Create volume types defined in Values.bootstrap */}}
|
||||
{{- /* Types can only be created for backends defined in Values.conf */}}
|
||||
{{- $volumeTypes := .Values.bootstrap.volume_types }}
|
||||
{{- range $backend_name, $backend_properties := .Values.conf.backends }}
|
||||
{{- if $backend_properties }}
|
||||
{{- range $name, $properties := $volumeTypes }}
|
||||
{{- if $properties.volume_backend_name }}
|
||||
{{- if (eq $properties.volume_backend_name $backend_properties.volume_backend_name) }}
|
||||
openstack volume type show {{ $name }} || \
|
||||
openstack volume type create \
|
||||
--public \
|
||||
@ -29,6 +34,9 @@ openstack volume type show {{ $name }} || \
|
||||
--property {{ $key }}={{ $value }} \
|
||||
{{- end }}
|
||||
{{ $name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
@ -16,6 +16,12 @@ pod:
|
||||
container:
|
||||
cinder_backup:
|
||||
privileged: true
|
||||
bootstrap:
|
||||
volume_types:
|
||||
# volume type for PURE with multiattach on
|
||||
PURE-MULTIATTACH:
|
||||
multiattach: "\"<is> True\""
|
||||
volume_backend_name: "PURE_BE"
|
||||
conf:
|
||||
cinder:
|
||||
DEFAULT:
|
||||
|
@ -12,3 +12,4 @@ cinder:
|
||||
- 0.1.9 Use HostToContainer mount propagation
|
||||
- 0.1.10 Change Issuer to ClusterIssuer
|
||||
- 0.1.11 Update RBAC apiVersion from /v1beta1 to /v1
|
||||
- 0.1.12 Update volume type creation bootstrap logic
|
||||
|
Loading…
Reference in New Issue
Block a user