mirror of
https://github.com/penpot/penpot-helm.git
synced 2024-12-22 13:43:01 -05:00
24 lines
790 B
YAML
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 -}}
|