kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: volume-claim-{{ .Release.Name }}-uploads
  labels:
    app.kubernetes.io/name:	"{{ .Chart.Name }}"
    app.kubernetes.io/instance:	"{{ .Release.Name }}"
    app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
    app.kubernetes.io/component: "volume-claim-backend"
    app.kubernetes.io/part-of:	"{{ .Chart.Name }}"
    app.kubernetes.io/managed-by: "{{ .Release.Service }}"
    helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
  #dataSource:
  #  name: uploads-snapshot
  #  kind: VolumeSnapshot
  #  apiGroup: snapshot.storage.k8s.io
  storageClassName: storage-{{ .Release.Name }}-persistent
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage:  {{ .Values.BACKEND.STORAGE_UPLOADS }}

