|
@@ -2,7 +2,6 @@
|
|
|
persistence:
|
|
|
config:
|
|
|
enabled: true
|
|
|
- {{- include "deluge.storage.ci.migration" (dict "storage" .Values.delugeStorage.config) }}
|
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.delugeStorage.config) | nindent 4 }}
|
|
|
targetSelector:
|
|
|
deluge:
|
|
@@ -12,7 +11,6 @@ persistence:
|
|
|
mountPath: /config
|
|
|
downloads:
|
|
|
enabled: true
|
|
|
- {{- include "deluge.storage.ci.migration" (dict "storage" .Values.delugeStorage.downloads) }}
|
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.delugeStorage.downloads) | nindent 4 }}
|
|
|
targetSelector:
|
|
|
deluge:
|
|
@@ -21,7 +19,6 @@ persistence:
|
|
|
{{- range $idx, $storage := .Values.delugeStorage.additionalStorages }}
|
|
|
{{ printf "deluge-%v:" (int $idx) }}
|
|
|
enabled: true
|
|
|
- {{- include "deluge.storage.ci.migration" (dict "storage" $storage) }}
|
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
|
|
targetSelector:
|
|
|
deluge:
|
|
@@ -29,13 +26,3 @@ persistence:
|
|
|
mountPath: {{ $storage.mountPath }}
|
|
|
{{- end }}
|
|
|
{{- end -}}
|
|
|
-
|
|
|
-{{/* TODO: Remove on the next version bump, eg 1.2.0+ */}}
|
|
|
-{{- define "deluge.storage.ci.migration" -}}
|
|
|
- {{- $storage := .storage -}}
|
|
|
-
|
|
|
- {{- if $storage.hostPath -}}
|
|
|
- {{- $_ := set $storage "hostPathConfig" dict -}}
|
|
|
- {{- $_ := set $storage.hostPathConfig "hostPath" $storage.hostPath -}}
|
|
|
- {{- end -}}
|
|
|
-{{- end -}}
|