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