Add pvc for signald data.
All checks were successful
ci/woodpecker/push/mautrix-signal Pipeline was successful

This commit is contained in:
Alex Manning 2023-03-31 20:02:49 +01:00
parent cde7bd9c09
commit aa7b13271a
3 changed files with 27 additions and 1 deletions

View file

@ -80,6 +80,13 @@ spec:
volumes:
- name: mainconfig
secret:
secretName: {{ include "mautrix-facebook.fullname" . }}
secretName: {{ include "mautrix-signal.fullname" . }}
- name: signald-socket
emptyDir: {}
- name: signald-data
persistentVolumeClaim:
{{- if not .Values.signald.pvc.existingClaim }}
claimName: {{ include "mautrix-signal.fullname" . }}-storage
{{- else }}
claimName: {{ .Values.signald.pvc.existingClaim }}
{{- end }}

View file

@ -0,0 +1,15 @@
{{- if not .Values.signald.pvc.existingClaim -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "mautrix-signal.fullname" . }}-signald-data
labels:
{{- include "mautrix-signal.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
storageClassName: {{ .Values.signald.pvc.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.signald.pvc.storage | quote }}
{{- end }}

View file

@ -64,3 +64,7 @@ signald:
tag: "0.23.2"
config: {}
# database: ""
pvc:
storageClassName: ""
existingClaim: false
storage: 5Gi