You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
477 B

  1. {% for class in storage_classes %}
  2. ---
  3. kind: StorageClass
  4. apiVersion: storage.k8s.io/v1
  5. metadata:
  6. name: "{{ class.name }}"
  7. annotations:
  8. storageclass.kubernetes.io/is-default-class: "{{ class.is_default | default(false) | ternary("true","false") }}"
  9. provisioner: kubernetes.io/cinder
  10. parameters:
  11. {% for key, value in (class.parameters | default({})).items() %}
  12. "{{ key }}": "{{ value }}"
  13. {% endfor %}
  14. allowVolumeExpansion: {{ expand_persistent_volumes }}
  15. {% endfor %}