chore(qbittorrent): Use port for containerPort as the listen port is configured via CM, and default torrentudd port to torrent (#5443)

This commit is contained in:
Stavros Kois
2022-12-16 23:28:10 +02:00
committed by GitHub
parent a47708f1ff
commit 316beee00a
4 changed files with 9 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/qbittorrent
- https://github.com/qbittorrent/qBittorrent
type: application
version: 13.0.5
version: 13.0.6
annotations:
truecharts.org/catagories: |
- media

View File

@@ -71,7 +71,7 @@ questions:
attrs:
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
description: "Does not have any effect. It defaults to the same port as torrent service"
schema:
type: int
default: 6881

View File

@@ -1,6 +1,11 @@
{{/* Render the templates */}}
{{ include "tc.common.loader.all" . }}
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{/* Set it to the same port as "torrent" service/port */}}
{{- $_ := set $.Values.service.torrentudp.ports.torrentudp "port" (int .Values.service.torrent.ports.torrent.port) -}}
{{/* Render the configmap */}}
{{ include "qbittorrent.configmap" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}

View File

@@ -18,14 +18,12 @@ service:
torrent:
enabled: true
port: 6881
targetPort: 6881
torrentudp:
enabled: true
ports:
torrentudp:
enabled: true
port: 6881
targetPort: 6881
protocol: UDP
persistence: