1234567891011121314 |
- ---
- apiVersion: v1
- kind: List
- items:
- {% for volume in persistent_volumes %}
- - kind: PersistentVolume
- metadata:
- name: "{{ volume.name }}"
- spec:
- capacity:
- storage: "{{ volume.capacity }}"
- accessModes: {{ volume.access_modes | to_padded_yaml(2, 2) }}
- {{ volume.storage.keys()[0] }}: {{ volume.storage[volume.storage.keys()[0]] | to_padded_yaml(3, 2) }}
- {% endfor %}
|