|
@@ -2,12 +2,16 @@
|
|
|
persistence:
|
|
|
data:
|
|
|
enabled: true
|
|
|
- {{- include "linkding.storage.ci.migration" (dict "storage" .Values.linkdingStorage.data) }}
|
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.linkdingStorage.data) | nindent 4 }}
|
|
|
targetSelector:
|
|
|
linkding:
|
|
|
linkding:
|
|
|
mountPath: /etc/linkding/data
|
|
|
+ {{- if and (eq .Values.linkdingStorage.data.type "ixVolume")
|
|
|
+ (not (.Values.linkdingStorage.data.ixVolumeConfig | default dict).aclEnable) }}
|
|
|
+ 01-permissions:
|
|
|
+ mountPath: /mnt/directories/data
|
|
|
+ {{- end }}
|
|
|
secret:
|
|
|
enabled: true
|
|
|
type: secret
|
|
@@ -28,28 +32,19 @@ persistence:
|
|
|
{{- range $idx, $storage := .Values.linkdingStorage.additionalStorages }}
|
|
|
{{ printf "linkding-%v:" (int $idx) }}
|
|
|
enabled: true
|
|
|
- {{- include "linkding.storage.ci.migration" (dict "storage" $storage) }}
|
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
|
|
targetSelector:
|
|
|
linkding:
|
|
|
linkding:
|
|
|
mountPath: {{ $storage.mountPath }}
|
|
|
+ {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
|
|
|
+ 01-permissions:
|
|
|
+ mountPath: /mnt/directories{{ $storage.mountPath }}
|
|
|
+ {{- end }}
|
|
|
{{- end }}
|
|
|
|
|
|
- {{- include "linkding.storage.ci.migration" (dict "storage" .Values.linkdingStorage.pgData) }}
|
|
|
- {{- include "linkding.storage.ci.migration" (dict "storage" .Values.linkdingStorage.pgBackup) }}
|
|
|
{{- include "ix.v1.common.app.postgresPersistence"
|
|
|
(dict "pgData" .Values.linkdingStorage.pgData
|
|
|
"pgBackup" .Values.linkdingStorage.pgBackup
|
|
|
) | nindent 2 }}
|
|
|
{{- end -}}
|
|
|
-
|
|
|
-{{/* TODO: Remove on the next version bump, eg 1.2.0+ */}}
|
|
|
-{{- define "linkding.storage.ci.migration" -}}
|
|
|
- {{- $storage := .storage -}}
|
|
|
-
|
|
|
- {{- if $storage.hostPath -}}
|
|
|
- {{- $_ := set $storage "hostPathConfig" dict -}}
|
|
|
- {{- $_ := set $storage.hostPathConfig "hostPath" $storage.hostPath -}}
|
|
|
- {{- end -}}
|
|
|
-{{- end -}}
|