blob: ce155333aa2c832eaa959224579aa11c08af3b35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
apiVersion: "v1"
kind: "List"
items:
{% for claim in persistent_volume_claims %}
- apiVersion: "v1"
kind: "PersistentVolumeClaim"
metadata:
name: "{{ claim.name }}"
spec:
accessModes: {{ claim.access_modes | lib_utils_to_padded_yaml(2, 2) }}
resources:
requests:
storage: "{{ claim.capacity }}"
{% if claim.storageclass is defined and claim.storageclass is not none %}
storageClassName: "{{ claim.storageclass }}"
{% endif %}
{% endfor %}
|