# helm_charts_prestashop-pvc.yaml
{{- if .Values.persistence.enabled -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: {{ template "prestashop.fullname" . }}-prestashop
  labels:
    app: "{{ template "prestashop.name" . }}"
    chart: "{{ template "prestashop.chart" . }}"
    release: {{ .Release.Name | quote }}
    heritage: {{ .Release.Service | quote }}
spec:
  accessModes:
    - {{ .Values.persistence.accessMode | quote }}
  resources:
    requests:
      storage: {{ .Values.persistence.size | quote }}
  {{ include "prestashop.storageClass" . }}
{{- end -}}