fix(qbittorrent): make auto port forward sidecar a cronjob (#18716)

**Description**
Changes auto port forward sidecar to a cronjob. Also sets the qbitorrent
webui admin password as private.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**

**📃 Notes:**

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: kqmaverick <121722567+kqmaverick@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
kqmaverick 2024-02-28 16:55:29 -08:00 committed by GitHub
parent 67a225afc0
commit ade7976dc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -35,4 +35,4 @@ sources:
- https://ghcr.io/onedr0p/qbittorrent
- https://hub.docker.com/r/mjmeli/qbittorrent-port-forward-gluetun-server
type: application
version: 19.1.3
version: 19.1.4

View File

@ -38,6 +38,7 @@ questions:
description: qBittorrent WebUI Password
schema:
type: string
private: true
default: "adminadmin"
# Include{podOptions}
# Include{serviceRoot}

View File

@ -39,9 +39,8 @@ service:
workload:
qbitportforward:
enabled: true
type: Deployment
strategy: RollingUpdate
replicas: 1
type: CronJob
schedule: "*/5 * * * *"
podSpec:
containers:
qbitportforward:
@ -60,6 +59,7 @@ workload:
QBT_PASSWORD: "{{ .Values.qbitportforward.QBT_PASSWORD }}"
QBT_ADDR: '{{ printf "http://%v:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.main.ports.main.port }}'
GTN_ADDR: '{{ printf "http://%v-gluetun:8000" (include "tc.v1.common.lib.chart.names.fullname" $) }}'
command: /usr/src/app/main.sh
persistence:
config:
enabled: true