mirror of
https://github.com/penpot/penpot-helm.git
synced 2025-01-08 16:00:13 -05:00
25 lines
787 B
YAML
25 lines
787 B
YAML
|
{{- 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 -}}
|