0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2025-01-08 16:00:13 -05:00
penpot-helm/charts/penpot/templates/exporter-persistentvolumeclaim.yml

25 lines
787 B
YAML
Raw Normal View History

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