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 22:28:10 +01:00
committed by GitHub
parent a47708f1ff
commit 316beee00a
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/qbittorrent - https://github.com/truecharts/charts/tree/master/charts/stable/qbittorrent
- https://github.com/qbittorrent/qBittorrent - https://github.com/qbittorrent/qBittorrent
type: application type: application
version: 13.0.5 version: 13.0.6
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
+1 -1
View File
@@ -71,7 +71,7 @@ questions:
attrs: attrs:
- variable: port - variable: port
label: "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: schema:
type: int type: int
default: 6881 default: 6881
@@ -1,6 +1,11 @@
{{/* Render the templates */}} {{/* Make sure all variables are set properly */}}
{{ include "tc.common.loader.all" . }} {{- 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 */}} {{/* Render the configmap */}}
{{ include "qbittorrent.configmap" . }} {{ include "qbittorrent.configmap" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
-2
View File
@@ -18,14 +18,12 @@ service:
torrent: torrent:
enabled: true enabled: true
port: 6881 port: 6881
targetPort: 6881
torrentudp: torrentudp:
enabled: true enabled: true
ports: ports:
torrentudp: torrentudp:
enabled: true enabled: true
port: 6881 port: 6881
targetPort: 6881
protocol: UDP protocol: UDP
persistence: persistence: