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