فهرست منبع

ha - use correct port on portal button when hostnet is enabled (#2118)

* ha - use correct port on portal button when hostnet is enabled

* use correct comment character..
Stavros Kois 1 سال پیش
والد
کامیت
9023c908dc

+ 1 - 1
library/ix-dev/charts/home-assistant/Chart.yaml

@@ -4,7 +4,7 @@ description: Home Assistant is an open source home automation that puts local co
 annotations:
   title: Home Assistant
 type: application
-version: 2.0.5
+version: 2.0.6
 apiVersion: v2
 appVersion: 2024.1.6
 kubeVersion: '>=1.16.0-0'

+ 1 - 1
library/ix-dev/charts/home-assistant/templates/_configuration.tpl

@@ -71,7 +71,7 @@ secret:
         #!/bin/sh
         config="/config/configuration.yaml"
         default="/default/init"
-        // Attemp to get read/write access
+        # Attemp to get read/write access
         chmod +rw "$config" || echo "Failed to set permissions on [$config]"
         if [ ! -f "$config" ]; then
           echo "File [$config] does NOT exist. Creating..."

+ 5 - 1
library/ix-dev/charts/home-assistant/templates/_portal.tpl

@@ -1,11 +1,15 @@
 {{- define "home-assistant.portal" -}}
+{{- $port := .Values.haNetwork.webPort -}}
+{{- if .Values.haNetwork.hostNetwork -}}
+  {{- $port = 8123 -}}
+{{- end }}
 ---
 apiVersion: v1
 kind: ConfigMap
 metadata:
   name: portal
 data:
-  port: {{ .Values.haNetwork.webPort | quote }}
+  port: {{ $port | quote }}
   path: "/"
   protocol: "http"
   host: $node_ip