diff --git a/library/ix-dev/community/qbittorrent/Chart.lock b/library/ix-dev/community/qbittorrent/Chart.lock index a3a3ee220b..ecddc9bc9f 100644 --- a/library/ix-dev/community/qbittorrent/Chart.lock +++ b/library/ix-dev/community/qbittorrent/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: file://../../../common - version: 1.1.0 -digest: sha256:752ce76025f5b61094bd2b18ca11693eb9d26d0dde4eb2e63cd2330cbffe9e73 -generated: "2023-08-28T16:57:04.625845446+03:00" + version: 1.1.1 +digest: sha256:a7dbe3e4d42dbcd4325776e5e01a1d630c7f185f79e7ebf22b1b9cc80f56eed7 +generated: "2023-10-10T14:21:08.770619275+03:00" diff --git a/library/ix-dev/community/qbittorrent/Chart.yaml b/library/ix-dev/community/qbittorrent/Chart.yaml index 19d6dabf0a..593ce8e1e4 100644 --- a/library/ix-dev/community/qbittorrent/Chart.yaml +++ b/library/ix-dev/community/qbittorrent/Chart.yaml @@ -4,7 +4,7 @@ description: The qBittorrent project aims to provide an open-source software alt annotations: title: qBittorrent type: application -version: 1.0.21 +version: 1.0.22 apiVersion: v2 appVersion: 4.5.5 kubeVersion: '>=1.16.0-0' @@ -15,7 +15,7 @@ maintainers: dependencies: - name: common repository: file://../../../common - version: 1.1.0 + version: 1.1.1 home: https://www.qbittorrent.org/ icon: https://upload.wikimedia.org/wikipedia/commons/9/9e/Qbittorrent_logo.png sources: diff --git a/library/ix-dev/community/qbittorrent/charts/common-1.1.0.tgz b/library/ix-dev/community/qbittorrent/charts/common-1.1.0.tgz deleted file mode 100644 index 47d1ba1b30..0000000000 Binary files a/library/ix-dev/community/qbittorrent/charts/common-1.1.0.tgz and /dev/null differ diff --git a/library/ix-dev/community/qbittorrent/charts/common-1.1.1.tgz b/library/ix-dev/community/qbittorrent/charts/common-1.1.1.tgz new file mode 100644 index 0000000000..bb20dd19db Binary files /dev/null and b/library/ix-dev/community/qbittorrent/charts/common-1.1.1.tgz differ diff --git a/library/ix-dev/community/qbittorrent/ci/basic-values.yaml b/library/ix-dev/community/qbittorrent/ci/basic-values.yaml index abb2549d2e..5ab9ab59b2 100644 --- a/library/ix-dev/community/qbittorrent/ci/basic-values.yaml +++ b/library/ix-dev/community/qbittorrent/ci/basic-values.yaml @@ -8,10 +8,6 @@ qbitRunAs: qbitStorage: downloads: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/downloads - datasetName: "" + type: pvc config: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/config - datasetName: "" + type: pvc diff --git a/library/ix-dev/community/qbittorrent/ci/extra-env-values.yaml b/library/ix-dev/community/qbittorrent/ci/extra-values.yaml similarity index 53% rename from library/ix-dev/community/qbittorrent/ci/extra-env-values.yaml rename to library/ix-dev/community/qbittorrent/ci/extra-values.yaml index aafc675a72..b5602f4d01 100644 --- a/library/ix-dev/community/qbittorrent/ci/extra-env-values.yaml +++ b/library/ix-dev/community/qbittorrent/ci/extra-values.yaml @@ -11,10 +11,11 @@ qbitNetwork: qbitStorage: downloads: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/downloads - datasetName: "" + type: pvc config: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/config - datasetName: "" + type: pvc + additionalStorages: + - type: pvc + mountPath: /action_movies + - type: pvc + mountPath: /adventure_movies diff --git a/library/ix-dev/community/qbittorrent/ci/hostNet-values.yaml b/library/ix-dev/community/qbittorrent/ci/hostNet-values.yaml index 0a6906efbb..10cdf2b95b 100644 --- a/library/ix-dev/community/qbittorrent/ci/hostNet-values.yaml +++ b/library/ix-dev/community/qbittorrent/ci/hostNet-values.yaml @@ -5,10 +5,6 @@ qbitNetwork: qbitStorage: downloads: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/downloads - datasetName: "" + type: pvc config: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/config - datasetName: "" + type: pvc diff --git a/library/ix-dev/community/qbittorrent/questions.yaml b/library/ix-dev/community/qbittorrent/questions.yaml index 07aafbd84d..f2f4a52255 100644 --- a/library/ix-dev/community/qbittorrent/questions.yaml +++ b/library/ix-dev/community/qbittorrent/questions.yaml @@ -187,6 +187,56 @@ questions: show_if: [["type", "=", "hostPath"]] immutable: true required: true + - variable: additionalStorages + label: Additional Storage + description: qBittorrent additional storage + schema: + type: list + default: [] + items: + - variable: storageEntry + label: Storage Entry + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: true + default: "ixVolume" + enum: + - value: "hostPath" + description: Host Path (Path that already exists on the system) + - value: "ixVolume" + description: ixVolume (Dataset created automatically by the system) + - variable: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" - variable: resources label: Resources Configuration diff --git a/library/ix-dev/community/qbittorrent/templates/_qbittorrent.tpl b/library/ix-dev/community/qbittorrent/templates/_qbittorrent.tpl index 4926d59c28..aaab934d35 100644 --- a/library/ix-dev/community/qbittorrent/templates/_qbittorrent.tpl +++ b/library/ix-dev/community/qbittorrent/templates/_qbittorrent.tpl @@ -104,4 +104,17 @@ persistence: mountPath: /downloads 01-permissions: mountPath: /mnt/directories/downloads + {{- range $idx, $storage := .Values.qbitStorage.additionalStorages }} + {{ printf "qbittorrent-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + qbittorrent: + qbittorrent: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories/{{ printf "qbittorrent-%v" (int $idx) }} + {{- end }} {{- end -}} diff --git a/library/ix-dev/community/qbittorrent/values.yaml b/library/ix-dev/community/qbittorrent/values.yaml index 5addb92490..a49d1c6767 100644 --- a/library/ix-dev/community/qbittorrent/values.yaml +++ b/library/ix-dev/community/qbittorrent/values.yaml @@ -24,6 +24,7 @@ qbitStorage: config: type: ixVolume datasetName: config + additionalStorages: [] notes: custom: |