Cinder-CSI default storageclass and volumeBindingMode (#6026)
* Set volumeBindingMode in cinder CSI template (#22) * make sure true/false is lowercase in cinder-csi storageclasspull/6035/head
parent
d70cafc1e4
commit
724a316204
|
@ -5,8 +5,9 @@ apiVersion: storage.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ class.name }}"
|
name: "{{ class.name }}"
|
||||||
annotations:
|
annotations:
|
||||||
storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) }}"
|
storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) | ternary("true","false") }}"
|
||||||
provisioner: cinder.csi.openstack.org
|
provisioner: cinder.csi.openstack.org
|
||||||
|
volumeBindingMode: WaitForFirstConsumer
|
||||||
parameters:
|
parameters:
|
||||||
{% for key, value in (class.parameters | default({})).items() %}
|
{% for key, value in (class.parameters | default({})).items() %}
|
||||||
"{{ key }}": "{{ value }}"
|
"{{ key }}": "{{ value }}"
|
||||||
|
|
Loading…
Reference in New Issue