diff --git a/library/ix-dev/community/jellyfin/Chart.yaml b/library/ix-dev/community/jellyfin/Chart.yaml index 062510e3a2..b5f74600b9 100644 --- a/library/ix-dev/community/jellyfin/Chart.yaml +++ b/library/ix-dev/community/jellyfin/Chart.yaml @@ -3,7 +3,7 @@ description: Jellyfin is a Free Software Media System that puts you in control o annotations: title: Jellyfin type: application -version: 1.0.6 +version: 1.0.7 apiVersion: v2 appVersion: '10.8.10' kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/community/jellyfin/questions.yaml b/library/ix-dev/community/jellyfin/questions.yaml index 30f4cd61d2..fb56b507cd 100644 --- a/library/ix-dev/community/jellyfin/questions.yaml +++ b/library/ix-dev/community/jellyfin/questions.yaml @@ -85,15 +85,6 @@ questions: schema: type: dict attrs: - - variable: webPort - label: Web Port - description: The port for the Jellyfin Web UI. - schema: - type: int - default: 30013 - min: 9000 - max: 65535 - required: true - variable: hostNetwork label: Host Network description: | @@ -102,6 +93,16 @@ questions: schema: type: boolean default: false + - variable: webPort + label: Web Port + description: The port for the Jellyfin Web UI. + schema: + type: int + default: 30013 + show_if: [["hostNetwork", "=", false]] + min: 9000 + max: 65535 + required: true - variable: jellyfinStorage label: "" diff --git a/library/ix-dev/community/jellyfin/templates/_portal.tpl b/library/ix-dev/community/jellyfin/templates/_portal.tpl index 73e6083a7b..c985b5aa83 100644 --- a/library/ix-dev/community/jellyfin/templates/_portal.tpl +++ b/library/ix-dev/community/jellyfin/templates/_portal.tpl @@ -6,7 +6,11 @@ metadata: name: portal data: path: "/" - port: {{ .Values.jellyfinNetwork.webPort | quote }} + {{- $port := .Values.jellyfinNetwork.webPort -}} + {{- if .Values.jellyfinNetwork.hostNetwork -}} + {{- $port = 8096 -}} + {{- end }} + port: {{ $port | quote }} protocol: http host: $node_ip {{- end -}}