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