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