2024-06-01 00:42:03 +00:00
|
|
|
{{- if and (not .Values.mastodon.s3.enabled) (not .Values.mastodon.persistence.system.existingClaim) -}}
|
2021-02-09 23:28:44 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: {{ template "mastodon.fullname" . }}-system
|
|
|
|
labels:
|
|
|
|
{{- include "mastodon.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
accessModes:
|
2021-08-09 14:16:20 +00:00
|
|
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
2023-04-08 19:26:41 +00:00
|
|
|
{{- with .Values.mastodon.persistence.system.resources }}
|
2021-02-09 23:28:44 +00:00
|
|
|
resources:
|
2023-04-08 19:26:41 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-08-09 14:16:20 +00:00
|
|
|
storageClassName: {{ .Values.mastodon.persistence.system.storageClassName }}
|
|
|
|
{{- end }}
|