0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-22 13:43:01 -05:00
penpot-helm/charts/penpot/templates/exporter-persistentvolumeclaim.yml

25 lines
808 B
YAML
Raw Normal View History

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