123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {{- define "pigallery.persistence" -}}
- persistence:
- config:
- enabled: true
- type: {{ .Values.pigalleryStorage.config.type }}
- datasetName: {{ .Values.pigalleryStorage.config.datasetName | default "" }}
- hostPath: {{ .Values.pigalleryStorage.config.hostPath | default "" }}
- targetSelector:
- pigallery:
- pigallery:
- mountPath: /app/data/config
- 01-permissions:
- mountPath: /mnt/directories/config
- db:
- enabled: true
- type: {{ .Values.pigalleryStorage.db.type }}
- datasetName: {{ .Values.pigalleryStorage.db.datasetName | default "" }}
- hostPath: {{ .Values.pigalleryStorage.db.hostPath | default "" }}
- targetSelector:
- pigallery:
- pigallery:
- mountPath: /app/data/db
- 01-permissions:
- mountPath: /mnt/directories/db
- media:
- enabled: true
- type: {{ .Values.pigalleryStorage.media.type }}
- datasetName: {{ .Values.pigalleryStorage.media.datasetName | default "" }}
- hostPath: {{ .Values.pigalleryStorage.media.hostPath | default "" }}
- targetSelector:
- pigallery:
- pigallery:
- mountPath: /app/data/media
- 01-permissions:
- mountPath: /mnt/directories/media
- thumbnails:
- enabled: true
- type: {{ .Values.pigalleryStorage.thumbnails.type }}
- datasetName: {{ .Values.pigalleryStorage.thumbnails.datasetName | default "" }}
- hostPath: {{ .Values.pigalleryStorage.thumbnails.hostPath | default "" }}
- targetSelector:
- pigallery:
- pigallery:
- mountPath: /app/data/thumbnails
- 01-permissions:
- mountPath: /mnt/directories/thumbnails
- {{- range $idx, $storage := .Values.pigalleryStorage.additionalStorages }}
- {{ printf "pigallery-%v" (int $idx) }}:
- enabled: true
- type: {{ $storage.type }}
- datasetName: {{ $storage.datasetName | default "" }}
- hostPath: {{ $storage.hostPath | default "" }}
- targetSelector:
- pigallery:
- pigallery:
- mountPath: {{ $storage.mountPath }}
- 01-permissions:
- mountPath: /mnt/directories{{ $storage.mountPath }}
- {{- end }}
- {{- end -}}
|