blob: b648cd15e25dc59b3e2a389db9242de95401929c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{obj_name}}
{% if annotations is defined %}
annotations:
{% for key,value in annotations.items() %}
{{key}}: {{value}}
{% endfor %}
{% endif %}
{% if labels is defined%}
labels:
{% for key, value in labels.items() %}
{{key}}: {{value}}
{% endfor %}
{% endif %}
spec:
capacity:
storage: {{size}}
accessModes:
{% for mode in access_modes %}
- {{mode}}
{% endfor %}
{{volume_plugin}}:
{% for s in volume_source %}
{{s.key}}: {{s.value}}
{% endfor %}
{% if claim_name is defined%}
claimRef:
name: {{claim_name}}
namespace: {{openshift_provisioners_project}}
{% endif %}
storageClassName: ""
|