0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-22 05:32:59 -05:00
penpot-helm/charts/penpot/templates/assets-persistentvolumeclaim.yml

24 lines
790 B
YAML

{{- 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 -}}