helm-charts/matrix-synapse/templates/pvc.yaml

30 lines
735 B
YAML
Raw Permalink Normal View History

{{- if and
.Values.persistence.enabled
(not .Values.persistence.existingClaim)
(not .Values.persistence.hostPath)
-}}
2024-02-11 23:14:38 +01:00
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "matrix-synapse.fullname" . }}
labels:
{{- include "matrix-synapse.labels" . | nindent 4 }}
{{- with .Values.persistence.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
2024-02-11 23:14:38 +01:00
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- with .Values.persistence.storageClass }}
{{- if (eq "-" .) }}
2024-02-11 23:14:38 +01:00
storageClassName: ""
{{- else }}
storageClassName: {{ . | quote }}
{{- end }}
{{- end }}
2024-02-11 23:14:38 +01:00
{{- end -}}