Add support for Cinder AZ + volume type

This commit is contained in:
Matt Pryor 2022-03-30 21:46:38 +01:00
parent 20d5f36c03
commit 48ec0776e0
2 changed files with 10 additions and 1 deletions

View File

@ -26,6 +26,11 @@ extraFiles:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
provisioner: cinder.csi.openstack.org
parameters:
availability: {{ .availabilityZone }}
{{- with .volumeType }}
type: {{ . }}
{{- end }}
reclaimPolicy: {{ .reclaimPolicy }}
allowVolumeExpansion: {{ .allowVolumeExpansion }}
{{- with .allowedTopologies }}

View File

@ -187,8 +187,12 @@ openstack:
reclaimPolicy: Delete
# Indicates if volume expansion is allowed
allowVolumeExpansion: true
# The Cinder availability zone to use for volumes provisioned by the storage class
availabilityZone: nova
# The Cinder volume type to use for volumes provisioned by the storage class
# If not given, the default volume type will be used
volumeType:
# The allowed topologies for the storage class
# If not given, the default Cinder availability zone will be used
allowedTopologies:
# Settings for the metrics server