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