15 lines
401 B
Plaintext
15 lines
401 B
Plaintext
|
{% for class in storage_classes %}
|
||
|
---
|
||
|
kind: StorageClass
|
||
|
apiVersion: storage.k8s.io/v1
|
||
|
metadata:
|
||
|
name: "{{ class.name }}"
|
||
|
annotations:
|
||
|
storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) }}"
|
||
|
provisioner: cinder.csi.openstack.org
|
||
|
parameters:
|
||
|
{% for key, value in (class.parameters | default({})).items() %}
|
||
|
"{{ key }}": "{{ value }}"
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|