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