{{- if and .Values.persistence.assets.enabled (not .Values.persistence.assets.existingClaim) -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "penpot.fullname" . }}-data-assets namespace: {{ .Release.Namespace }} labels: {{- include "penpot.labels" . | nindent 4 }} {{- if .Values.persistence.assets.annotations }} annotations: {{ toYaml .Values.persistence.assets.annotations | indent 4 }} {{- end }} spec: accessModes: {{- range .Values.persistence.assets.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.persistence.assets.size | quote }} {{- if .Values.persistence.assets.storageClass }} storageClassName: "{{ .Values.persistence.assets.storageClass }}" {{- end }} {{- end -}}