0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-22 21:53:14 -05:00
penpot-helm/charts/penpot/templates/assets-persistentvolumeclaim.yml
2024-07-09 12:52:00 +02:00

24 lines
774 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 -}}