apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{obj_name}}
{% if labels is not defined %}
  labels:
    logging-infra: support
{% elif labels %}
  labels:
{% for key, value in labels.iteritems() %}
    {{ key }}: {{ value }}
{% endfor %}
{% endif %}
{% if annotations is defined and annotations %}
  annotations:
{% for key,value in annotations.iteritems() %}
    {{key}}: {{value}}
{% endfor %}
{% endif %}
spec:
  accessModes:
{% for mode in access_modes %}
    - {{ mode }}
{% endfor %}
  resources:
    requests:
      storage: {{size}}
