33 lines
706 B
YAML
33 lines
706 B
YAML
{{- with .Values.persistence }}
|
|
{{- if and
|
|
.enabled
|
|
(not .existingClaim)
|
|
(not .hostPath)
|
|
-}}
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "mautrix-signal.fullname" $ }}
|
|
labels:
|
|
{{- include "mautrix-signal.labels" $ | nindent 4 }}
|
|
{{- with .annotations }}
|
|
annotations:
|
|
{{ toYaml . | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .size | quote }}
|
|
{{- with .storageClass }}
|
|
{{- if (eq "-" .) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: {{ . | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}{{/* end-if .enabled */}}
|
|
{{- end }}{{/* end-with .persistence */}}
|
|
|