mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:00:11 +08:00
NAS-122651 / 23.10 / hide webport when hostnetwork is enabled (#1297)
* hide webport when hostnetwork is enabled * fix portal
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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: ""
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user