2022-11-10 22:24:39 +00:00
|
|
|
{{- if (not .Values.mastodon.s3.enabled) -}}
|
2020-06-29 11:58:48 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: {{ template "mastodon.fullname" . }}-assets
|
|
|
|
labels:
|
|
|
|
{{- include "mastodon.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
accessModes:
|
2021-02-15 07:00:54 +00:00
|
|
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
2022-11-10 22:24:39 +00:00
|
|
|
{{- with .Values.mastodon.persistence.assets.resources }}
|
2020-06-29 11:58:48 +00:00
|
|
|
resources:
|
2022-11-10 22:24:39 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-02-15 07:00:54 +00:00
|
|
|
storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
|
2021-02-19 08:52:32 +00:00
|
|
|
{{- end }}
|