{{- if .Values.persistence.enabled -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: {{ template "owncloud.fullname" . }}-owncloud
spec:
  accessModes:
    - {{ .Values.persistence.owncloud.accessMode | quote }}
  resources:
    requests:
      storage: {{ .Values.persistence.owncloud.size | quote }}
  {{ include "owncloud.storageClass" . }}
{{- end -}}
