fix(deconz): Dynamicly set env vars for ports based on service (#1948)

This commit is contained in:
Stavros Kois
2022-02-24 01:01:47 +01:00
committed by GitHub
parent 3a87eb409d
commit 33a49aadbb
3 changed files with 7 additions and 31 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ name: deconz
sources: sources:
- https://github.com/dresden-elektronik/deconz-rest-plugin - https://github.com/dresden-elektronik/deconz-rest-plugin
- https://github.com/marthoc/docker-deconz - https://github.com/marthoc/docker-deconz
version: 6.0.22 version: 6.0.23
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- media - media
+3 -21
View File
@@ -109,24 +109,6 @@ questions:
schema: schema:
type: int type: int
default: 1 default: 1
- variable: DECONZ_WEB_PORT
label: "DECONZ_WEB_PORT"
description: "Web UI listen port"
schema:
type: int
default: 80
- variable: DECONZ_WS_PORT
label: "DECONZ_WS_PORT"
description: "Websocket listen port"
schema:
type: int
default: 443
- variable: DECONZ_VNC_PORT
label: "DECONZ_VNC_PORT"
description: " VNC server listen port"
schema:
type: int
default: 5900
# Include{containerConfig} # Include{containerConfig}
@@ -191,7 +173,7 @@ questions:
description: "The internal(!) port on the container the Application runs on" description: "The internal(!) port on the container the Application runs on"
schema: schema:
type: int type: int
default: 80 default: 10008
- variable: websocket - variable: websocket
@@ -248,7 +230,7 @@ questions:
description: "The internal(!) port on the container the Application runs on" description: "The internal(!) port on the container the Application runs on"
schema: schema:
type: int type: int
default: 443 default: 10001
- variable: vnc - variable: vnc
@@ -305,7 +287,7 @@ questions:
description: "The internal(!) port on the container the Application runs on" description: "The internal(!) port on the container the Application runs on"
schema: schema:
type: int type: int
default: 5900 default: 10002
- variable: serviceexpert - variable: serviceexpert
group: "Networking and Services" group: "Networking and Services"
+3 -9
View File
@@ -26,12 +26,9 @@ env:
DECONZ_DEVICE: # /dev/ttyUSB0 DECONZ_DEVICE: # /dev/ttyUSB0
# -- Enable VNC access to the container to view the deCONZ ZigBee mesh # -- Enable VNC access to the container to view the deCONZ ZigBee mesh
DECONZ_VNC_MODE: 1 DECONZ_VNC_MODE: 1
# -- Web UI listen port DECONZ_WEB_PORT: "{{ .Values.service.main.ports.main.port }}"
DECONZ_WEB_PORT: 8080 DECONZ_WS_PORT: "{{ .Values.service.websocket.ports.websocket.port }}"
# -- Websocket listen port DECONZ_VNC_PORT: "{{ .Values.service.vnc.ports.vnc.port }}"
DECONZ_WS_PORT: 6080
# -- VNC server listen port
DECONZ_VNC_PORT: 5900
DECONZ_UID: 568 DECONZ_UID: 568
DECONZ_GID: 568 DECONZ_GID: 568
@@ -42,21 +39,18 @@ service:
ports: ports:
main: main:
port: 10008 port: 10008
targetPort: 8080
websocket: websocket:
enabled: true enabled: true
ports: ports:
websocket: websocket:
enabled: true enabled: true
port: 10001 port: 10001
targetPort: 6080
vnc: vnc:
enabled: true enabled: true
ports: ports:
vnc: vnc:
enabled: true enabled: true
port: 10002 port: 10002
targetPort: 5900
# -- Configure persistence settings for the chart under this key. # -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml # @default -- See values.yaml