mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-01-30 23:54:27 -06:00
e02a7948d8
fix #3103 --- not yet tested [skip ci]
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
{{ if not .Values.persistence.media.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-media-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.media.capacity }}
|
|
{{ $storageClass := .Values.persistence.media.storageClass | default .Values.persistence.storageClass }}
|
|
{{- if $storageClass }}
|
|
{{- if (eq "-" $storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ $storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ end }}
|
|
{{ if not .Values.persistence.jetstream.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-jetstream-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.jetstream.capacity }}
|
|
{{ $storageClass := .Values.persistence.jetstream.storageClass | default .Values.persistence.storageClass }}
|
|
{{- if $storageClass }}
|
|
{{- if (eq "-" $storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ $storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ end }}
|
|
{{ if not .Values.persistence.search.existingClaim }}
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
name: {{ include "dendrite.fullname" . }}-search-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.search.capacity }}
|
|
{{ $storageClass := .Values.persistence.search.storageClass | default .Values.persistence.storageClass }}
|
|
{{- if $storageClass }}
|
|
{{- if (eq "-" $storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ $storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ end }}
|