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