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