{{- if not .Values.persistence.mediafiles.existingClaim }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ .Values.persistence.mediafiles.name }} namespace: {{ include "tandoor.namespace" . }} annotations: {{- with .Values.persistence.mediafiles.annotations }} {{ toYaml . | nindent 4 }} {{- end }} helm.sh/resource-policy: keep labels: {{- include "tandoor.labels" . | nindent 4 }} spec: {{- if .Values.persistence.mediafiles.storageClass }} storageClassName: {{ .Values.persistence.mediafiles.storageClass | quote }} {{- end }} accessModes: - {{ .Values.persistence.mediafiles.accessMode }} resources: requests: storage: {{ .Values.persistence.mediafiles.size | quote }} {{- end }}