Add additional storage for qbittorrent (#1626)

* Add additional storage for qbittorrent

Add additional storage for qbittorrent

Fix

Revert "Add additional storage for qbittorrent"

This reverts commit 0186aba1581348f3b1e7ec00961ecc25f1123526.

* bump common and update ci-values

---------

Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
Megum1n
2023-10-14 22:17:43 +02:00
committed by GitHub
parent 0f06c1b5ff
commit c38fe69959
10 changed files with 80 additions and 23 deletions

View File

@@ -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"

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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.</br>
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

View File

@@ -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 -}}

View File

@@ -24,6 +24,7 @@ qbitStorage:
config:
type: ixVolume
datasetName: config
additionalStorages: []
notes:
custom: |