13 lines
379 B
Django/Jinja
13 lines
379 B
Django/Jinja
{% for class_name, class_config in local_volume_provisioner_storage_classes.items() %}
|
|
---
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: {{ class_name }}
|
|
provisioner: kubernetes.io/no-provisioner
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
{% if class_config.reclaim_policy is defined %}
|
|
reclaimPolicy: {{ class_config.reclaim_policy }}
|
|
{% endif %}
|
|
{% endfor %}
|