about summary refs log tree commit diff
path: root/chart/templates/pvc-assets.yaml
blob: 36d555898e744c7594bdb11eed068c4920193282 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{- if (not .Values.mastodon.s3.enabled) -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{ template "mastodon.fullname" . }}-assets
  labels:
    {{- include "mastodon.labels" . | nindent 4 }}
spec:
  accessModes:
    - {{ .Values.mastodon.persistence.system.accessMode }}
  {{- with .Values.mastodon.persistence.assets.resources }}
  resources:
    {{- toYaml . | nindent 4 }}
  {{- end }}
  storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
{{- end }}