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/exporter-persistentvolumeclaim.yml

24 lines
808 B
YAML

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