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